summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-02-09 18:55:04 +0900
committerMichel Dänzer <michel@daenzer.net>2017-02-22 18:30:12 +0900
commit244d4bc7f8c8f6bc90f49556c0b9344c8aa40295 (patch)
treec96e63fd007483d2de6662d586e38e40b81348cd
parent3ff29e5a14451916bc66b4e0028e9a317f0723f8 (diff)
present: Wait for screen pixmap BO idle before setting modes for unflip
To make sure the screen pixmap contents are up to date when it starts being scanned out. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/radeon_present.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radeon_present.c b/src/radeon_present.c
index b36e29b1..1b0ddcb8 100644
--- a/src/radeon_present.c
+++ b/src/radeon_present.c
@@ -404,6 +404,8 @@ modeset:
old_fb_id = info->drmmode.fb_id;
info->drmmode.fb_id = 0;
+ radeon_cs_flush_indirect(scrn);
+ radeon_bo_wait(info->front_bo);
for (i = 0; i < config->num_crtc; i++) {
xf86CrtcPtr crtc = config->crtc[i];
drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;