diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2017-03-08 17:42:56 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2017-03-09 15:37:39 +0900 |
commit | 9a71445094b728f3d78db8f6808b4782ee19a453 (patch) | |
tree | 5bead85367e28546461af1aa03b1861082b9ad56 /src | |
parent | 67ae5e00a748ad52cf92738d401afff2947b1891 (diff) |
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.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_kms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 907ebfcf..424f9f72 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -328,7 +328,8 @@ static Bool RADEONCreateScreenResources_KMS(ScreenPtr pScreen) } } - if (!drmmode_set_desired_modes(pScrn, &info->drmmode, FALSE)) + if (!drmmode_set_desired_modes(pScrn, &info->drmmode, + radeon_is_gpu_screen(pScreen))) return FALSE; drmmode_uevent_init(pScrn, &info->drmmode); |