i965: Remove brw_context::depthstencil::hiz_mt
authorChad Versace <chad.versace@linux.intel.com>
Fri, 5 Apr 2013 21:51:31 +0000 (14:51 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Wed, 10 Apr 2013 17:55:10 +0000 (10:55 -0700)
After recent refactorings, the field is written but no longer read.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_misc_state.c

index 9158b90f5e8fe0fd0bc23bba52ac92e80ca6b32f..ab3ae1c10817051578dac4c23cd7d73908a524c8 100644 (file)
@@ -1083,7 +1083,6 @@ struct brw_context
    struct {
       struct intel_mipmap_tree *depth_mt;
       struct intel_mipmap_tree *stencil_mt;
-      struct intel_mipmap_tree *hiz_mt;
 
       /* Inter-tile (page-aligned) byte offsets. */
       uint32_t depth_offset, hiz_offset, stencil_offset;
index 9324069c3aaa3922495f473451686f2af7c14059..db6bc2d89936f60b9fbb590dba0e22e574958ea3 100644 (file)
@@ -530,7 +530,6 @@ brw_workaround_depthstencil_alignment(struct brw_context *brw,
    brw->depthstencil.hiz_offset = 0;
    brw->depthstencil.depth_mt = NULL;
    brw->depthstencil.stencil_mt = NULL;
-   brw->depthstencil.hiz_mt = NULL;
    if (depth_irb) {
       depth_mt = depth_irb->mt;
       brw->depthstencil.depth_mt = depth_mt;
@@ -540,7 +539,6 @@ brw_workaround_depthstencil_alignment(struct brw_context *brw,
                                          depth_irb->draw_y & ~tile_mask_y,
                                          false);
       if (intel_renderbuffer_has_hiz(depth_irb)) {
-         brw->depthstencil.hiz_mt = depth_mt->hiz_mt;
          brw->depthstencil.hiz_offset =
             intel_region_get_aligned_offset(depth_mt->region,
                                             depth_irb->draw_x & ~tile_mask_x,