[PATCH xf86-video-amdgpu 6/7] dri2: Don't allow flipping when using a dedicated scanout buffer
Michel Dänzer
michel at daenzer.net
Wed Jun 22 08:50:30 UTC 2016
From: Michel Dänzer <michel.daenzer at amd.com>
Fixes issues when mixing rotation and page flipping with current xserver
Git master.
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
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..17b8578 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;
}
--
2.8.1
More information about the amd-gfx
mailing list