[PATCH xf86-video-ati 09/15] dri2: Don't allow flipping when using a dedicated scanout buffer

Michel Dänzer michel at daenzer.net
Wed Sep 21 09:50:48 UTC 2016


From: Michel Dänzer <michel.daenzer at amd.com>

Fixes issues when mixing rotation and page flipping with current xserver
Git master.

(Ported from amdgpu commit decabd574f90d3df397c80ec931b3fde8a4afb49)

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/radeon_dri2.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 69fd0ea..1206b2a 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;
     }
 
-- 
2.9.3



More information about the amd-gfx mailing list