[PATCH xf86-video-amdgpu 3/9] present: Wait for GPU idle before setting modes for unflip

Michel Dänzer michel at daenzer.net
Fri Mar 3 09:07:39 UTC 2017


From: Michel Dänzer <michel.daenzer at amd.com>

To make sure the screen pixmap contents are up to date when it starts
being scanned out.

(Ported from radeon commit 244d4bc7f8c8f6bc90f49556c0b9344c8aa40295)

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/amdgpu_present.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c
index 5a345cb0a..cf6e36b2f 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;
-- 
2.11.0



More information about the amd-gfx mailing list