forked from enlightenment/efl
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:
parent
d09664e20e
commit
edd78d1800
|
@ -348,6 +348,15 @@ _fb_atomic_flip_test(Ecore_Drm2_Output *output)
|
||||||
cstate->active.value);
|
cstate->active.value);
|
||||||
if (ret < 0) goto err;
|
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)
|
EINA_LIST_FOREACH(output->planes, l, plane)
|
||||||
{
|
{
|
||||||
pstate = plane->state;
|
pstate = plane->state;
|
||||||
|
|
|
@ -1303,6 +1303,20 @@ _output_mode_atomic_set(Ecore_Drm2_Output *output, Ecore_Drm2_Output_Mode *mode)
|
||||||
goto err;
|
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,
|
ret = sym_drmModeAtomicCommit(output->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET,
|
||||||
output);
|
output);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
|
Loading…
Reference in New Issue