summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-07-10 18:52:08 +0200
committerMichel Dänzer <michel@daenzer.net>2018-07-12 18:07:35 +0200
commite9d2d149481e2a9c7cba50d43c6a5146124be3f2 (patch)
treefbbdc09008cbb700c403aae7a3a7ec5ff6d54b27 /src/drmmode_display.c
parent89d38e976fd6ba6e026cda7c5d05971f1f177f13 (diff)
Simplify drmmode_handle_transform
Set crtc->driverIsPerformingTransform for any case we can handle before calling xf86CrtcRotate. We already clear it afterwards when the latter clears crtc->transform_in_use. This should allow our separate scanout buffer mechanism to be used in more cases. (Cherry picked from amdgpu commit 8e544b4a0de6717feb4abf00052d57c5b726b5ce) Acked-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index b3b37f56..fce8723e 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -669,13 +669,9 @@ drmmode_handle_transform(xf86CrtcPtr crtc)
Bool ret;
#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,15,99,903,0)
- if (crtc->transformPresent || crtc->rotation != RR_Rotate_0)
- crtc->driverIsPerformingTransform = XF86DriverTransformOutput;
- else
- crtc->driverIsPerformingTransform = XF86DriverTransformNone;
+ crtc->driverIsPerformingTransform = XF86DriverTransformOutput;
#else
crtc->driverIsPerformingTransform = !crtc->transformPresent &&
- crtc->rotation != RR_Rotate_0 &&
(crtc->rotation & 0xf) == RR_Rotate_0;
#endif