From 0272f76741e6311aa12a79fa24c3ace323236941 Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Wed, 16 Nov 2016 11:39:29 -0800 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 3 +-- 1 file changed, 1 insertion(+), 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 -- 2.30.2