OSDN Git Service

intel: Only prefer separate stencil when we can do HiZ.
authorEric Anholt <eric@anholt.net>
Wed, 30 Nov 2011 16:52:54 +0000 (08:52 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 7 Dec 2011 21:36:57 +0000 (13:36 -0800)
commit5c9a55665d78b96bfb8ce8eab43b5558dd656a6d
treee00ef939efd92288e7f9d2606e111e8d85cd1cc6
parent576161289df68eedade591fbca4013329c9e5ded
intel: Only prefer separate stencil when we can do HiZ.

This required is_hiz_depth_format to start returning true on S8_Z24 as
well, since that's the format we have here.  The two previous callers
are only calling it on non-depthstencil formats.

This avoids us needing to have HiZ working on a new Z format
immediately upon exposing the format (particularly painful for
Z32_FLOAT_X24S8, which means all the fake packed depth/stencil paths).

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c