diff options
author | Chad Versace <[email protected]> | 2011-11-17 08:50:05 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-11-22 10:50:52 -0800 |
commit | b18875d441ca4b7b1a4098659fb4298a4bf265f6 (patch) | |
tree | ae25c60cd78301116288b94b0c0d3b073bd6ab46 /src/mesa | |
parent | e7e81714f3ecf67a975d35e74bdb7fd15d924e4d (diff) |
intel: Use separate stencil whenever possible
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 <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_fbo.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index c96430d41bd..dc3e5dda14f 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -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; diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index f875edb9730..f8ef2625df3 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c @@ -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, |