gsk: Always use RGBA on big-endian architectures
authorSimon McVittie <smcv@debian.org>
Fri, 8 Dec 2023 16:42:56 +0000 (16:42 +0000)
committerSimon McVittie <smcv@debian.org>
Sat, 9 Dec 2023 01:33:26 +0000 (01:33 +0000)
commit7a0b791eea822f29dde00352b0b4c1ee11d89ea5
tree543b85fd770a6fa2eaa8d2a834c2818587084857
parent80d40bc62ff985decef306019e433404e395cd80
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