diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2014-03-06 11:42:52 -0800 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2014-04-17 15:06:00 -0700 |
commit | ea0b178e88bc42325dd9b06f9289b995fcf412ab (patch) | |
tree | 3665f7f9f4b5b03ba176c47466a938ba4ed673ff | |
parent | a23634cded9951b14053fdd005156fed104db3e6 (diff) |
gen8: don't resolve depth before samplingbdw-aux-surf
With gen8 we can specify the hiz buffer for the surface
which allows sampling from the depth texture without
explicitly resolving the depth values.
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 583c7d66b2..4522dff6cc 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -321,7 +321,8 @@ brw_predraw_resolve_buffers(struct brw_context *brw) tex_obj = intel_texture_object(ctx->Texture.Unit[i]._Current); if (!tex_obj || !tex_obj->mt) continue; - intel_miptree_all_slices_resolve_depth(brw, tex_obj->mt); + if (brw->gen < 8) + intel_miptree_all_slices_resolve_depth(brw, tex_obj->mt); intel_miptree_resolve_color(brw, tex_obj->mt); brw_render_cache_set_check_flush(brw, tex_obj->mt->region->bo); } |