intel: Use separate stencil whenever possible
authorChad Versace <chad.versace@linux.intel.com>
Thu, 17 Nov 2011 16:50:05 +0000 (08:50 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 22 Nov 2011 18:50:52 +0000 (10:50 -0800)
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>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c

index c96430d41bd4bf50112928f81f76c05151a71fac..dc3e5dda14f1ebb0fd9e183d425c1e21e3082a80 100644 (file)
@@ -669,7 +669,7 @@ intel_alloc_renderbuffer_storage(struct gl_context * ctx, struct gl_renderbuffer
         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;
index f875edb973090c7983098304bfadfaa44c0053e0..f8ef2625df3e1822b962b135f233a244c1c66a05 100644 (file)
@@ -119,7 +119,7 @@ intel_miptree_create_internal(struct intel_context *intel,
    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,