mesa: Add MESA_FORMAT_X8_Z24 to _mesa_choose_tex_format
authorChad Versace <chad@chad-versace.us>
Mon, 23 May 2011 20:47:17 +0000 (13:47 -0700)
committerChad Versace <chad@chad-versace.us>
Wed, 25 May 2011 14:41:31 +0000 (07:41 -0700)
commit4e0654ec2924c941fe03f57665fbf44e1b600db8
treed8681a5274ec60225ef13608832f8da343f52aa6
parent76f77cb07edf9c6a548f782c709de70aa0a41458
mesa: Add MESA_FORMAT_X8_Z24 to _mesa_choose_tex_format

Prefer MESA_FORMAT_X8_Z24 over MESA_FORMAT_S8_Z24 for textures with
internal format GL_DEPTH_COMPONENT*.

i965 needs MESA_FORMAT_X8_Z24 for HiZ and separate stencil.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/main/texformat.c