aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBen Widawsky <[email protected]>2016-11-16 11:39:29 -0800
committerBen Widawsky <[email protected]>2016-11-16 11:40:12 -0800
commit0272f76741e6311aa12a79fa24c3ace323236941 (patch)
tree8dcdff056d54b6e952da12dd9d7fe081b35c75e6 /src/mesa
parent0d241085f723402120b4b47e939fe77020a16d80 (diff)
Partial revert "i965: "Fix" aux offsets"
This partially reverts commit 0d241085f723402120b4b47e939fe77020a16d80. HiZ buffer cannot do this properly now, and it's not required, so remove it. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_surface_state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index 77198ae1644..835a4686749 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -148,8 +148,7 @@ brw_emit_surface_state(struct brw_context *brw,
aux_offset = mt->mcs_buf->bo->offset64 + mt->mcs_buf->offset;
} else {
aux_bo = mt->hiz_buf->aux_base.bo;
- aux_offset = mt->hiz_buf->aux_base.bo->offset64 +
- mt->hiz_buf->mt->offset;
+ aux_offset = mt->hiz_buf->aux_base.bo->offset64;
}
/* We only really need a clear color if we also have an auxiliary