summaryrefslogtreecommitdiff
path: root/src/amdgpu_present.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-03-03 16:26:26 +0900
committerMichel Dänzer <michel@daenzer.net>2017-03-07 16:52:34 +0900
commitf6a3c87c3097e8d5c1d2159bc90d6541a46ed8be (patch)
treeb45a546a67a360b49b7b1e41bba8bda75c15da74 /src/amdgpu_present.c
parent012ffffb45119059f3610fb8fd6ae103186b3e3c (diff)
present: Wait for GPU idle before setting modes for unflip
To make sure the screen pixmap contents are up to date when it starts being scanned out. (Ported from radeon commit 244d4bc7f8c8f6bc90f49556c0b9344c8aa40295) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_present.c')
-rw-r--r--src/amdgpu_present.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c
index 5a345cb..cf6e36b 100644
--- a/src/amdgpu_present.c
+++ b/src/amdgpu_present.c
@@ -378,6 +378,7 @@ modeset:
old_fb_id = info->drmmode.fb_id;
info->drmmode.fb_id = 0;
+ amdgpu_glamor_finish(scrn);
for (i = 0; i < config->num_crtc; i++) {
xf86CrtcPtr crtc = config->crtc[i];
drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;