spirv: Support big-endian strings
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 28 Aug 2020 17:36:20 +0000 (12:36 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Sep 2020 17:15:22 +0000 (17:15 +0000)
commitfb6b243c113a2bab9bd63ea98381e1eeeecc8421
tree21884edb309d9d38a49f54cf79861d06e9d1d4f5
parenta8d8fbb9ce193944c769f90388f67432efa74757
spirv: Support big-endian strings

This should be all that's required for the SPIR-V parser to work in
big-endian systems.  SPIR-V requires that everything be in host
byte-order except for strings which are always little-endian.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6090>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h