summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-09-21 16:47:17 +0900
committerMichel Dänzer <michel@daenzer.net>2016-09-21 18:20:19 +0900
commit343d28672411a510de21fa57986324ef8bcdd1b6 (patch)
tree36447821ac8125f42b89ebaf316a22846a07a08d /src
parent83e4781d15d66d6fa0e153eb4cd0e3d9e2ebed9f (diff)
dri2: 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 decabd574f90d3df397c80ec931b3fde8a4afb49)
Diffstat (limited to 'src')
-rw-r--r--src/radeon_dri2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 69fd0ead..1206b2ae 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -723,7 +723,10 @@ can_exchange(ScrnInfoPtr pScrn, DrawablePtr draw,
for (i = 0; i < xf86_config->num_crtc; i++) {
xf86CrtcPtr crtc = xf86_config->crtc[i];
- if (crtc->enabled && crtc->rotatedData)
+ drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
+
+ if (crtc->enabled &&
+ (crtc->rotatedData || drmmode_crtc->scanout[0].bo))
return FALSE;
}