mesa: Add debug info to _mesa_format_from_format_and_type() error path.
authorEric Anholt <eric@anholt.net>
Wed, 18 Sep 2019 21:46:49 +0000 (14:46 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 17 Oct 2019 21:07:29 +0000 (21:07 +0000)
commitdf5fe86232039b4179105c92fbccd6a809388a15
tree3c00279f497b1d4d5ad4a721a0455b7adff19b46
parent0a4e6726baa15e362c8297d6d64cd51e9b27491d
mesa: Add debug info to _mesa_format_from_format_and_type() error path.

The unreachable() that follows isn't very useful for debug, and by adding
this here we get a nice description of the failure in debug builds.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/glformats.c