From: Michel Dänzer <michel.daen...@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.daen...@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

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to