OSDN Git Service

i965: Add separate stencil/HiZ setup for MESA_FORMAT_Z32_FLOAT_X24S8.
authorEric Anholt <eric@anholt.net>
Wed, 7 Dec 2011 22:49:45 +0000 (14:49 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 19 Dec 2011 21:20:11 +0000 (13:20 -0800)
commit4790c4ae2489b8c72e6d98f3f80b5a9e7f799203
tree73c2b9c6291b995964055569cac2510c9cd6c069
parente71fc6a8200cd78037a9788230ec0cc9f451a4b1
i965: Add separate stencil/HiZ setup for MESA_FORMAT_Z32_FLOAT_X24S8.

This is a little more unusual than the separate MESA_FORMAT_S8_Z24
support, because in addition to storing the real stencil data in a
MESA_FORMAT_S8 miptree, we also make the Z miptree be
MESA_FORMAT_Z32_FLOAT instead of the requested format.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c