summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-09-23 08:51:35 -0400
committerChris Michael <cp.michael@samsung.com>2016-09-23 08:51:35 -0400
commit1abed3dcaf4ee47366cf2c6804aed997be5244c9 (patch)
treedcc85ff7267e09b89553fa94413817a8952b59a2
parent8257c95f39eb2ba942f0f4821d19d5493749d34b (diff)
downloadefl-1abed3dcaf4ee47366cf2c6804aed997be5244c9.tar.gz
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>
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 95bf8c1e7c..7142ab135a 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -37,26 +37,22 @@ _fb_atomic_flip(Ecore_Drm2_Output *output, Ecore_Drm2_Plane_State *pstate, uint3
{
int ret = 0;
drmModeAtomicReq *req = NULL;
+ Ecore_Drm2_Crtc_State *cstate;
req = drmModeAtomicAlloc();
if (!req) return -1;
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,
- cstate->mode.value);
- if (ret < 0) goto err;
+ ret = drmModeAtomicAddProperty(req, cstate->obj_id, cstate->mode.id,
+ cstate->mode.value);
+ if (ret < 0) goto err;
- ret = drmModeAtomicAddProperty(req, cstate->obj_id, cstate->active.id,
- cstate->active.value);
- if (ret < 0) goto err;
- }
+ ret = drmModeAtomicAddProperty(req, cstate->obj_id, cstate->active.id,
+ cstate->active.value);
+ if (ret < 0) goto err;
ret = drmModeAtomicAddProperty(req, pstate->obj_id,
pstate->cid.id, pstate->cid.value);