From decabd574f90d3df397c80ec931b3fde8a4afb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 22 Jun 2016 17:43:41 +0900 Subject: [PATCH] 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 --- src/amdgpu_dri2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }