summaryrefslogtreecommitdiff
path: root/src/amdgpu_present.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-03-18 18:51:00 +0900
committerMichel Dänzer <michel@daenzer.net>2016-03-23 18:59:29 +0900
commit37bd79652a8ec612b94a1863e8c580b1cfaf3960 (patch)
tree344a3b8a133f5467e45e185033c1fa1c124a6f09 /src/amdgpu_present.c
parent6b930fb3285dea4a6440e31099c96f08da508d49 (diff)
present: Return rotated CRTCs from amdgpu_present_get_crtc
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) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_present.c')
-rw-r--r--src/amdgpu_present.c3
1 files changed, 1 insertions, 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;