mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
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>
This commit is contained in:
committed by
Michel Dänzer
parent
89d38e976f
commit
e9d2d14948
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user