Pass TRUE to drmmode_set_desired_modes the first time for GPU screens

This is the only place we call drmmode_set_desired_modes for GPU screens
during server startup. Without this change, the display outputs of
secondary GPUs may stay on even while Xorg isn't using them.

(Ported from radeon commit 9a71445094b728f3d78db8f6808b4782ee19a453)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Michel Dänzer
2017-03-09 15:56:59 +09:00
committed by Michel Dänzer
parent 82b15a4da1
commit 3a8582944e

View File

@@ -243,7 +243,8 @@ static Bool AMDGPUCreateScreenResources_KMS(ScreenPtr pScreen)
}
}
if (!drmmode_set_desired_modes(pScrn, &info->drmmode, FALSE))
if (!drmmode_set_desired_modes(pScrn, &info->drmmode,
amdgpu_is_gpu_screen(pScreen)))
return FALSE;
drmmode_uevent_init(pScrn, &info->drmmode);