pixman: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Sep 7 08:02:50 UTC 2022
pixman/pixman-fast-path.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit b4a105d77232a87304b7b621e2f99e699a8eebd3
Author: Jocelyn Falempe <jfalempe at redhat.com>
Date: Wed Jun 29 10:55:43 2022 +0200
Fix inverted colors on big endian system
bits_image_fetch_separable_convolution_affine() didn't take care
of big endian system
Signed-off-by: Jocelyn Falempe <jfalempe at redhat.com>
diff --git a/pixman/pixman-fast-path.c b/pixman/pixman-fast-path.c
index 4b7a6f8..fa5ea03 100644
--- a/pixman/pixman-fast-path.c
+++ b/pixman/pixman-fast-path.c
@@ -2836,7 +2836,11 @@ bits_image_fetch_separable_convolution_affine (pixman_image_t * image,
sgtot = CLIP (sgtot, 0, 0xff);
sbtot = CLIP (sbtot, 0, 0xff);
+#ifdef WORDS_BIGENDIAN
+ buffer[k] = (satot << 0) | (srtot << 8) | (sgtot << 16) | (sbtot << 24);
+#else
buffer[k] = (satot << 24) | (srtot << 16) | (sgtot << 8) | (sbtot << 0);
+#endif
next:
vx += ux;
More information about the xorg-commit
mailing list