summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-03-09 18:23:10 +0900
committerMichel Dänzer <michel@daenzer.net>2016-03-10 18:44:17 +0900
commita03271de5ecdaa7790d1316e993c4450b91fe936 (patch)
tree1d305855c3450c46c7b9b7b41caa9609b313d6af
parent40191d82370eb7e58bd34c44966cbf44c3703229 (diff)
present: Return rotated CRTCs from radeon_present_get_crtc
Sync-to-vblank works fine with rotation. We're still checking for rotation in radeon_present_check_flip. Returning NULL from here resulted in the xserver present code falling back to the fake CRTC running at 1 fps. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/radeon_present.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/radeon_present.c b/src/radeon_present.c
index 286b3f42..e0a549db 100644
--- a/src/radeon_present.c
+++ b/src/radeon_present.c
@@ -77,8 +77,7 @@ radeon_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;