[Mesa-dev] [PATCH 7/8] i965: Remove brw_context::depthstencil::hiz_mt

Kenneth Graunke kenneth at whitecape.org
Tue Apr 9 15:52:00 PDT 2013


From: Chad Versace <chad.versace at linux.intel.com>

After recent refactorings, the field is written but no longer read.

Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 src/mesa/drivers/dri/i965/brw_context.h    | 1 -
 src/mesa/drivers/dri/i965/brw_misc_state.c | 2 --
 2 files changed, 3 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 9158b90..ab3ae1c 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -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;
diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c
index 9324069..db6bc2d 100644
--- a/src/mesa/drivers/dri/i965/brw_misc_state.c
+++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
@@ -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,
-- 
1.8.2.1



More information about the mesa-dev mailing list