summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-06-16 11:30:03 +0900
committerAdam Jackson <ajax@redhat.com>2017-09-25 15:34:10 -0400
commit0934d56dc804780f3e83ae0153c797d392e6faba (patch)
tree65a5879aa00d33f2f590ffb35cdf9fa2d23e8169 /hw
parent358f0bcd4f6703302b8895e42e20d1cbdfff102e (diff)
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> (cherry picked from commit 4212c884c423e5ce2cd3b4d67c0d656475fddc79)
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/modes/xf86RandR12.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c
index 6e6aa1b2a..aac02db43 100644
--- a/hw/xfree86/modes/xf86RandR12.c
+++ b/hw/xfree86/modes/xf86RandR12.c
@@ -1174,8 +1174,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)