[PATCH xf86-video-amdgpu 5/7] present: Don't allow flipping when using a dedicated scanout buffer

Michel Dänzer michel at daenzer.net
Wed Jun 22 08:50:29 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_present.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c
index 63ba812..c0b2f17 100644
--- a/src/amdgpu_present.c
+++ b/src/amdgpu_present.c
@@ -242,7 +242,8 @@ amdgpu_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->dpms_mode == DPMSModeOn)
-- 
2.8.1



More information about the amd-gfx mailing list