mesa: Use the format info to identify packed depth/stencil formats.
authorNick Bowler <nbowler@draconx.ca>
Fri, 27 Aug 2010 00:52:30 +0000 (17:52 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 27 Aug 2010 20:31:00 +0000 (14:31 -0600)
commitf57df7f2130dfe20a6f7e75cfc1f5d4e1717d098
treef239e48ff9c188d295106484e914b8a1c4d0d954
parent579fce252413f39830ee379076fddf0580ea9b16
mesa: Use the format info to identify packed depth/stencil formats.

Due to a misunderstanding of the Z24_X8 and X8_Z24 formats, the earlier
patch created depth/stencil wrappers for them.  This broke swrast.

Use the format info instead, which only identifies Z24_S8 and S8_Z24 as
packed depth/stencil.  It also has the advantage of being nicer code.

Signed-off-by: Nick Bowler <nbowler@draconx.ca>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/formats.c