From: Michel Dänzer <[email protected]>

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.

Signed-off-by: Michel Dänzer <[email protected]>
---
 src/amdgpu_kms.c | 4 ++--
 1 file 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
-- 
2.8.0.rc3

_______________________________________________
xorg-driver-ati mailing list
[email protected]
https://lists.x.org/mailman/listinfo/xorg-driver-ati

Reply via email to