summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-09-21 16:44:50 +0900
committerMichel Dänzer <michel@daenzer.net>2016-09-21 18:20:19 +0900
commit83e4781d15d66d6fa0e153eb4cd0e3d9e2ebed9f (patch)
treeb9f26df411be8da713b6a52978374be42a2fd250 /src
parent8419db3de6157875f9a840773350ecd29cd42d83 (diff)
present: Don't allow flipping when using a dedicated scanout buffer
Fixes issues when mixing rotation and page flipping with current xserver Git master. (Ported from amdgpu commit 3ed28ce7cd26f89969617ba901ff253091d0d469)
Diffstat (limited to 'src')
-rw-r--r--src/radeon_present.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_present.c b/src/radeon_present.c
index 93c18a82..ff4045a1 100644
--- a/src/radeon_present.c
+++ b/src/radeon_present.c
@@ -265,7 +265,8 @@ radeon_present_check_flip(RRCrtcPtr crtc, WindowPtr window, PixmapPtr pixmap,
if (!config->crtc[i]->enabled)
continue;
- if (!drmmode_crtc || drmmode_crtc->rotate.bo != NULL)
+ if (!drmmode_crtc || drmmode_crtc->rotate.bo ||
+ drmmode_crtc->scanout[0].bo)
return FALSE;
if (drmmode_crtc->pending_dpms_mode == DPMSModeOn)