diff options
author | Christopher Michael <cp.michael@samsung.com> | 2019-04-01 08:41:38 -0400 |
---|---|---|
committer | Christopher Michael <cp.michael@samsung.com> | 2019-04-18 07:21:39 -0400 |
commit | edd78d18006e94d7fa9bd553bb49d2e4becddd6d (patch) | |
tree | 2a79208748fbbc7cff1110544260816755071b67 /src/lib/ecore_drm2 | |
parent | d09664e20efeb59ededa4de3a9104bdd3b19dba5 (diff) |
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
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_fb.c | 9 | ||||
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_outputs.c | 14 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c index e8f6c16762..aab47956fb 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) | |||
348 | cstate->active.value); | 348 | cstate->active.value); |
349 | if (ret < 0) goto err; | 349 | if (ret < 0) goto err; |
350 | 350 | ||
351 | if (cstate->background.id) | ||
352 | { | ||
353 | ret = | ||
354 | sym_drmModeAtomicAddProperty(req, cstate->obj_id, | ||
355 | cstate->background.id, | ||
356 | cstate->background.value); | ||
357 | if (ret < 0) goto err; | ||
358 | } | ||
359 | |||
351 | EINA_LIST_FOREACH(output->planes, l, plane) | 360 | EINA_LIST_FOREACH(output->planes, l, plane) |
352 | { | 361 | { |
353 | pstate = plane->state; | 362 | pstate = plane->state; |
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c index 6734cacdff..7ad6ef8396 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) | |||
1303 | goto err; | 1303 | goto err; |
1304 | } | 1304 | } |
1305 | 1305 | ||
1306 | if (cstate->background.id) | ||
1307 | { | ||
1308 | ret = | ||
1309 | sym_drmModeAtomicAddProperty(req, cstate->obj_id, | ||
1310 | cstate->background.id, | ||
1311 | cstate->background.value); | ||
1312 | if (ret < 0) | ||
1313 | { | ||
1314 | ERR("Could not add atomic property"); | ||
1315 | ret = EINA_FALSE; | ||
1316 | goto err; | ||
1317 | } | ||
1318 | } | ||
1319 | |||
1306 | ret = sym_drmModeAtomicCommit(output->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET, | 1320 | ret = sym_drmModeAtomicCommit(output->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET, |
1307 | output); | 1321 | output); |
1308 | if (ret < 0) | 1322 | if (ret < 0) |