[PATCH xf86-video-amdgpu 12/12] present: Return rotated CRTCs from amdgpu_present_get_crtc

Michel Dänzer michel at daenzer.net
Fri Mar 18 10:01:37 UTC 2016


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

Sync-to-vblank works fine with rotation. We're still checking for
rotation in amdgpu_present_check_flip.

Returning NULL from here resulted in the xserver present code falling
back to the fake CRTC running at 1 fps.

(Ported from radeon commit a03271de5ecdaa7790d1316e993c4450b91fe936)

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/amdgpu_present.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c
index c11a807..67b59b7 100644
--- a/src/amdgpu_present.c
+++ b/src/amdgpu_present.c
@@ -77,8 +77,7 @@ amdgpu_present_get_crtc(WindowPtr window)
 				     window->drawable.y,
 				     window->drawable.y + window->drawable.height);
 
-	/* Make sure the CRTC is valid and this is the real front buffer */
-	if (crtc != NULL && !crtc->rotatedData)
+	if (crtc)
 		randr_crtc = crtc->randr_crtc;
 
 	return randr_crtc;
-- 
2.7.0



More information about the xorg-driver-ati mailing list