From: Christopher Michael Date: Mon, 1 Apr 2019 12:41:38 +0000 (-0400) Subject: ecore-drm2: Fill in crtc background color (if supported) during atomic X-Git-Tag: submit/tizen/20190424.060632~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9299ac8dbc27d81e82cd9060541d945214359e17;p=platform%2Fupstream%2Fefl.git ecore-drm2: Fill in crtc background color (if supported) during atomic commits Small patch to add the crtc background_color property (if supported) to any atomic tests/commits @feature --- diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c index e8f6c16..aab4795 100644 --- a/src/lib/ecore_drm2/ecore_drm2_fb.c +++ b/src/lib/ecore_drm2/ecore_drm2_fb.c @@ -348,6 +348,15 @@ _fb_atomic_flip_test(Ecore_Drm2_Output *output) cstate->active.value); if (ret < 0) goto err; + if (cstate->background.id) + { + ret = + sym_drmModeAtomicAddProperty(req, cstate->obj_id, + cstate->background.id, + cstate->background.value); + if (ret < 0) goto err; + } + EINA_LIST_FOREACH(output->planes, l, plane) { pstate = plane->state; diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c index 6734cac..7ad6ef8 100644 --- a/src/lib/ecore_drm2/ecore_drm2_outputs.c +++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c @@ -1303,6 +1303,20 @@ _output_mode_atomic_set(Ecore_Drm2_Output *output, Ecore_Drm2_Output_Mode *mode) goto err; } + if (cstate->background.id) + { + ret = + sym_drmModeAtomicAddProperty(req, cstate->obj_id, + cstate->background.id, + cstate->background.value); + if (ret < 0) + { + ERR("Could not add atomic property"); + ret = EINA_FALSE; + goto err; + } + } + ret = sym_drmModeAtomicCommit(output->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET, output); if (ret < 0)