For depthstencil renderbuffers, we were using separate stencil only if the
hardware required it. Since the performance gains from HiZ is so high, we
should always use separate stencil if the hardware supports it.
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
return false;
} else if (irb->Base.Format == MESA_FORMAT_S8_Z24
- && intel->must_use_separate_stencil) {
+ && intel->has_separate_stencil) {
bool ok = true;
struct gl_renderbuffer *depth_rb;
brw_miptree_layout(intel, mt);
#endif
- if (intel->must_use_separate_stencil &&
+ if (intel->has_separate_stencil &&
_mesa_is_depthstencil_format(_mesa_get_format_base_format(format))) {
mt->stencil_mt = intel_miptree_create(intel,
mt->target,