Partial revert "i965: "Fix" aux offsets"
authorBen Widawsky <ben@bwidawsk.net>
Wed, 16 Nov 2016 19:39:29 +0000 (11:39 -0800)
committerBen Widawsky <ben@bwidawsk.net>
Wed, 16 Nov 2016 19:40:12 +0000 (11:40 -0800)
This partially reverts commit 0d241085f723402120b4b47e939fe77020a16d80.

HiZ buffer cannot do this properly now, and it's not required, so remove
it.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index 77198ae16445783f89c6616000e55f6ab78901f4..835a46867491d77dacdab53a9967abf639eb7ebf 100644 (file)
@@ -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