mesa/st: Make st_pipe_format_to_mesa_format an effective no-op.
authorEric Anholt <eric@anholt.net>
Fri, 6 Sep 2019 21:33:18 +0000 (14:33 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 7 Nov 2019 19:43:41 +0000 (19:43 +0000)
commit9d2c8df3ebb7770e9486f6e14aa9bf38bd792d7a
tree8119658594d4b43e2bf0857956b524021d00c24a
parent75921a0912225903e40881f2d89e2f4a22c2f6ae
mesa/st: Make st_pipe_format_to_mesa_format an effective no-op.

All callers other than the unit test just wanted to convert back from
a known-mesa-equivalent format, which is now a no-op.

v2: Fix assertion failure in iris GL startup with BGR565 by continuing
    to return MESA_FORMAT_NONE for non-Mesa formats.

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