ecore-drm2: Cleanup output_enabled_set function code

If we are using atomic, we don't need to set the crtc active values
here as they will be set in output_dpms_set function anyway.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-05-19 11:32:20 -04:00
parent 7a3c658759
commit 851a2c72af
1 changed files with 1 additions and 7 deletions

View File

@ -1235,19 +1235,13 @@ ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, Eina_Bool enabled)
if (output->enabled)
{
if (_ecore_drm2_use_atomic)
output->crtc_state->active.value = 1;
ecore_drm2_fb_flip(NULL, output);
ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON);
}
else
{
if (_ecore_drm2_use_atomic)
{
output->crtc_state->active.value = 0;
ecore_drm2_fb_flip(NULL, output);
}
ecore_drm2_fb_flip(NULL, output);
ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_OFF);
output->current.fb = NULL;