mesa: Drop incorrect A4B4G4R4 _mesa_format_matches_format_and_type() cases.
authorEric Anholt <eric@anholt.net>
Thu, 1 Feb 2018 19:12:47 +0000 (11:12 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 3 Feb 2018 00:27:49 +0000 (16:27 -0800)
commit1429cd74c2c03a311d92a60b66806db3d96d6b16
treeffc9a9a2f23d19f27d744bf37ffe009b5bf4698b
parentbbef9474fa52d9aba06eeede52558fc5ccb762dd
mesa: Drop incorrect A4B4G4R4 _mesa_format_matches_format_and_type() cases.

swapBytes operates on bytes, not 4-bit channels, so you can't just take
non-swapBytes cases and flip the REV flag.

Avoids piglit texture-packed-formats regressions when enabling the
ABGR4444 format.

Fixes: c5a5c9a7db89 ("mesa/formats: add new mesa formats and their pack/unpack functions.")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/formats.c