From: Ben Widawsky Date: Wed, 16 Nov 2016 19:39:29 +0000 (-0800) Subject: Partial revert "i965: "Fix" aux offsets" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0272f76741e6311aa12a79fa24c3ace323236941;p=mesa.git 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 --- 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