mesa: Handle GL_COLOR_INDEX in _mesa_format_from_format_and_type().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Nov 2019 07:12:54 +0000 (23:12 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 15 Nov 2019 20:32:17 +0000 (20:32 +0000)
commit69f109cc37fff6300ea9e1914779620b7a117bf9
tree9b5af62d1e1129ec58479c98a74623b64c2428db
parentea232c7cfd492fffb1dcf3ba07459c159e8bc112
mesa: Handle GL_COLOR_INDEX in _mesa_format_from_format_and_type().

Just return MESA_FORMAT_NONE to avoid triggering unreachable; there's
really no sensible thing to return for this case anyway.

This prevents regressions in the next commit, which makes st/mesa
start using this function to find a reasonable format from GL format
and type enums.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/glformats.c