mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
Handle rotation in the driver also with Xorg 1.12-1.18
We cannot use the HW cursor in that case, but in turn we get more efficient and less teary updates of rotated outputs. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
ae921a3150
commit
f2bc882f1c
@@ -673,23 +673,20 @@ drmmode_crtc_update_tear_free(xf86CrtcPtr crtc)
|
||||
|
||||
#if XF86_CRTC_VERSION >= 4
|
||||
|
||||
#if XF86_CRTC_VERSION < 7
|
||||
#define XF86DriverTransformOutput TRUE
|
||||
#define XF86DriverTransformNone FALSE
|
||||
#endif
|
||||
|
||||
static Bool
|
||||
drmmode_handle_transform(xf86CrtcPtr crtc)
|
||||
{
|
||||
Bool ret;
|
||||
|
||||
#if XF86_CRTC_VERSION >= 7
|
||||
if (crtc->transformPresent || crtc->rotation != RR_Rotate_0)
|
||||
crtc->driverIsPerformingTransform = XF86DriverTransformOutput;
|
||||
else
|
||||
crtc->driverIsPerformingTransform = XF86DriverTransformNone;
|
||||
#else
|
||||
drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
|
||||
RADEONInfoPtr info = RADEONPTR(crtc->scrn);
|
||||
|
||||
crtc->driverIsPerformingTransform = crtc->transformPresent ||
|
||||
(drmmode_crtc->tear_free && crtc->rotation != RR_Rotate_0);
|
||||
#endif
|
||||
|
||||
ret = xf86CrtcRotate(crtc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user