xfree86/modes: Use RRTransformEqual in xf86RandR12CrtcSet

The memcmp didn't catch when e.g. only the filter changed. Tested by
alternately running

xrandr --output DVI-I-0 --scale-from 3840x2160 --filter bilinear
xrandr --output DVI-I-0 --scale-from 3840x2160 --filter nearest

Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
Michel Dänzer 2017-06-16 11:30:03 +09:00 committed by Michel Dänzer
parent 091af80be4
commit 4212c884c4

View File

@ -1170,8 +1170,7 @@ xf86RandR12CrtcSet(ScreenPtr pScreen,
if ((transform != NULL) != crtc->transformPresent)
changed = TRUE;
else if (transform &&
memcmp(&transform->transform, &crtc->transform.transform,
sizeof(transform->transform)) != 0)
!RRTransformEqual(transform, &crtc->transform))
changed = TRUE;
if (x != crtc->x || y != crtc->y)