ecore-drm2: Remove useless if check for atomic_modeset flag
As we always set this flag in the drm2_fb_flip function, having this check here is now pointless. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
8257c95f39
commit
1abed3dcaf
|
@ -37,16 +37,13 @@ _fb_atomic_flip(Ecore_Drm2_Output *output, Ecore_Drm2_Plane_State *pstate, uint3
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
drmModeAtomicReq *req = NULL;
|
drmModeAtomicReq *req = NULL;
|
||||||
|
Ecore_Drm2_Crtc_State *cstate;
|
||||||
|
|
||||||
req = drmModeAtomicAlloc();
|
req = drmModeAtomicAlloc();
|
||||||
if (!req) return -1;
|
if (!req) return -1;
|
||||||
|
|
||||||
drmModeAtomicSetCursor(req, 0);
|
drmModeAtomicSetCursor(req, 0);
|
||||||
|
|
||||||
if (flags & DRM_MODE_ATOMIC_ALLOW_MODESET)
|
|
||||||
{
|
|
||||||
Ecore_Drm2_Crtc_State *cstate;
|
|
||||||
|
|
||||||
cstate = output->crtc_state;
|
cstate = output->crtc_state;
|
||||||
|
|
||||||
ret = drmModeAtomicAddProperty(req, cstate->obj_id, cstate->mode.id,
|
ret = drmModeAtomicAddProperty(req, cstate->obj_id, cstate->mode.id,
|
||||||
|
@ -56,7 +53,6 @@ _fb_atomic_flip(Ecore_Drm2_Output *output, Ecore_Drm2_Plane_State *pstate, uint3
|
||||||
ret = drmModeAtomicAddProperty(req, cstate->obj_id, cstate->active.id,
|
ret = drmModeAtomicAddProperty(req, cstate->obj_id, cstate->active.id,
|
||||||
cstate->active.value);
|
cstate->active.value);
|
||||||
if (ret < 0) goto err;
|
if (ret < 0) goto err;
|
||||||
}
|
|
||||||
|
|
||||||
ret = drmModeAtomicAddProperty(req, pstate->obj_id,
|
ret = drmModeAtomicAddProperty(req, pstate->obj_id,
|
||||||
pstate->cid.id, pstate->cid.value);
|
pstate->cid.id, pstate->cid.value);
|
||||||
|
|
Loading…
Reference in New Issue