gsk: Always use RGBA on big-endian architectures
authorSimon McVittie <smcv@debian.org>
Fri, 8 Dec 2023 16:42:56 +0000 (16:42 +0000)
committerJeremy Bícha <jbicha@ubuntu.com>
Fri, 26 Jan 2024 20:19:36 +0000 (15:19 -0500)
commit543df58601f0d98fc3612375b094835f5b7c7ad0
tree3c3c8c63dd1898493e949632b72ddadd893ffc5f
parent52b599acfc73f555e82fb9d1dd30e0d1e17ce1f7
gsk: Always use RGBA on big-endian architectures

The memorytexture test started failing on big-endian CPUs while using
"desktop" GL (not GLES) in commit b0e26873 "gsk: Use has_bgra in more
places". The subsequent commit f5812808 "gsk: Restore bigendian support"
was meant to fix this, but it seems it did not.

Always taking the RGBA code-path on big-endian might not be optimal,
but it seems to result in the test passing again.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/6260
Bug-Debian: https://bugs.debian.org/1057782
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6653

Gbp-Pq: Name gsk-Always-use-RGBA-on-big-endian-architectures.patch
gsk/gl/gskglglyphlibrary.c
gsk/gl/gskgliconlibrary.c