mesa/st: Gut most of st_mesa_format_to_pipe_format().
authorEric Anholt <eric@anholt.net>
Fri, 6 Sep 2019 21:29:10 +0000 (14:29 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 7 Nov 2019 19:43:41 +0000 (19:43 +0000)
commit75921a0912225903e40881f2d89e2f4a22c2f6ae
tree0beab346b654e01d36310590f1001f15a4860675
parent807a800d8c3ec60fbfb9953951aec1e6cfb8e707
mesa/st: Gut most of st_mesa_format_to_pipe_format().

Now that MESA_FORMAT_x is just a PIPE_FORMAT_x define, we can strip
this function down to just the compression fallbacks.

v2: Restore the SRGB format for ASTC SRGB fallback case.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_format.c