mesa: Redefine the RG formats as array formats.
authorEric Anholt <eric@anholt.net>
Thu, 29 Aug 2019 23:05:20 +0000 (16:05 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 20 Oct 2019 04:39:48 +0000 (04:39 +0000)
commitd8741ad251d65b7cf2aa019ed5d0713a264bc941
tree297dca9fb48f35e24510833fd643134704f1517b
parent4f384ddf5febb5005af3be0a2d51e244fb11a43b
mesa: Redefine the RG formats as array formats.

This is the layout used in the GL API, and maps directly to PIPE
formats with no endianness trickery.  As with the LA change, this
fixes big-endian fetching from texbos.  Also cleans up some endian
shenanigans in shader images.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
15 files changed:
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/i965/brw_surface_formats.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/main/formats.c
src/mesa/main/formats.csv
src/mesa/main/formats.h
src/mesa/main/framebuffer.c
src/mesa/main/shaderimage.c
src/mesa/main/texcompress_rgtc.c
src/mesa/main/texformat.c
src/mesa/main/teximage.c
src/mesa/state_tracker/st_cb_eglimage.c
src/mesa/state_tracker/st_format.c
src/mesa/swrast/s_texfetch.c
src/mesa/swrast/s_texfetch_tmp.h