mesa: Clean up some endianness adapters for shader image formats.
authorEric Anholt <eric@anholt.net>
Fri, 10 Jan 2020 22:02:51 +0000 (14:02 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 5 Feb 2020 18:31:09 +0000 (10:31 -0800)
commitbb615e5fe3f68d0dc8210e6b09ced6913b433103
tree09d29faf6605eb28cb46385513e3e584dd733276
parent23c137612bea1e319ecdfb894c020b6651f4909a
mesa: Clean up some endianness adapters for shader image formats.

We already had a uint version in formats.h, move the snorm/unorm ones
there, too.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3355>
src/mesa/main/formats.h
src/mesa/main/shaderimage.c