mesa: Replace the LA16_UNORM packed formats with one array format.
authorEric Anholt <eric@anholt.net>
Thu, 29 Aug 2019 22:45:18 +0000 (15:45 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 20 Oct 2019 04:39:48 +0000 (04:39 +0000)
commit236b478b2ec0d65ef5dfe1165ae8ab027dde0a42
treeba0825512a12788b3a95e07251a2a1b8e27fbaee
parent1165e3f36084ff0c4ff0c4f5a069185b0f28386f
mesa: Replace the LA16_UNORM packed formats with one array format.

The array format is what the GL API wants (and we made a mistake in
the format returned for texbos on big-endian!), and it's exactly what
the gallium-side PIPE_FORMAT_L16A16 is.  The only downside is that
dri_util tries to fall back to sampling RG16 using LA16, which doesn't
have a match for big-endian any more.  No HW drivers supported A16L16
anyway.

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