[PATCH xf86-video-ati 08/15] present: Don't allow flipping when using a dedicated scanout buffer
Michel Dänzer
michel at daenzer.net
Wed Sep 21 09:50:47 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 3ed28ce7cd26f89969617ba901ff253091d0d469)
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/radeon_present.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/radeon_present.c b/src/radeon_present.c
index 93c18a8..ff4045a 100644
--- a/src/radeon_present.c
+++ b/src/radeon_present.c
@@ -265,7 +265,8 @@ radeon_present_check_flip(RRCrtcPtr crtc, WindowPtr window, PixmapPtr pixmap,
if (!config->crtc[i]->enabled)
continue;
- if (!drmmode_crtc || drmmode_crtc->rotate.bo != NULL)
+ if (!drmmode_crtc || drmmode_crtc->rotate.bo ||
+ drmmode_crtc->scanout[0].bo)
return FALSE;
if (drmmode_crtc->pending_dpms_mode == DPMSModeOn)
--
2.9.3
More information about the amd-gfx
mailing list