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
This commit is contained in:
Christopher Michael 2019-04-01 08:41:38 -04:00
parent d09664e20e
commit edd78d1800
2 changed files with 23 additions and 0 deletions

View File

@ -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;

View File

@ -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)