summaryrefslogtreecommitdiff
path: root/src/amdgpu_dri2.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-06-22 17:43:41 +0900
committerMichel Dänzer <michel@daenzer.net>2016-06-23 16:12:20 +0900
commitdecabd574f90d3df397c80ec931b3fde8a4afb49 (patch)
tree03d5ade01095354d23c5f66614f40b900fe75f95 /src/amdgpu_dri2.c
parent3ed28ce7cd26f89969617ba901ff253091d0d469 (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. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_dri2.c')
-rw-r--r--src/amdgpu_dri2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c
index 9cdcf28..dd18e72 100644
--- a/src/amdgpu_dri2.c
+++ b/src/amdgpu_dri2.c
@@ -600,7 +600,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;
}