summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-03-24 12:03:38 +0900
committerMichel Dänzer <michel.daenzer@amd.com>2016-03-24 12:14:58 +0900
commit4a60b4b1851a3cbc2d8ad9048d68eeb6947cf132 (patch)
tree1f0b8544c3866871516f1f3654b6da4bd758b104 /src
parent37bd79652a8ec612b94a1863e8c580b1cfaf3960 (diff)
Call AMDGPUBlockHandler_KMS before setting initial modes
Doing it the other way around meant that there was still a possibility for the front buffer contents to be uninitialized when they start being scanned out. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_kms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 9fd3254..f840e10 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -536,9 +536,9 @@ static void AMDGPUBlockHandler_oneshot(BLOCKHANDLER_ARGS_DECL)
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
AMDGPUInfoPtr info = AMDGPUPTR(pScrn);
- drmmode_set_desired_modes(pScrn, &info->drmmode, TRUE);
-
AMDGPUBlockHandler_KMS(BLOCKHANDLER_ARGS);
+
+ drmmode_set_desired_modes(pScrn, &info->drmmode, TRUE);
}
static void