mesa: Fix depth/stencil ordering in _mesa_format_from_format_and_type().
authorEric Anholt <eric@anholt.net>
Tue, 17 Sep 2019 21:54:48 +0000 (14:54 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 17 Oct 2019 21:07:29 +0000 (21:07 +0000)
commit7be72b24f50f71257453e14cc30d33cd45fae21e
tree53f38c9d8bde8fbc44bf8c1208da74e1f3eed28f
parentdf5fe86232039b4179105c92fbccd6a809388a15
mesa: Fix depth/stencil ordering in _mesa_format_from_format_and_type().

The GL spec says the 24-bit component is in the high bits, and
format_unpack.c looks at the high 24 bits in the S8Z24 case, not
Z24SS8.

Avoids a regression in the next commit.

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