[Mesa-dev] [PATCH 3/6] i965/gen8: Don't rely directly on the hiz miptree structure
Pohjolainen, Topi
topi.pohjolainen at intel.com
Wed Jul 2 05:40:33 PDT 2014
On Tue, Jul 01, 2014 at 04:53:05PM -0700, Jordan Justen wrote:
> We are still allocating a miptree for hiz, but we only use fields from
> intel_miptree_aux_buffer. This will allow us to switch over to not
> allocating a miptree.
>
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
> src/mesa/drivers/dri/i965/gen8_depth_state.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Patches 1-3 are:
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
>
> diff --git a/src/mesa/drivers/dri/i965/gen8_depth_state.c b/src/mesa/drivers/dri/i965/gen8_depth_state.c
> index b6f373d..8774595 100644
> --- a/src/mesa/drivers/dri/i965/gen8_depth_state.c
> +++ b/src/mesa/drivers/dri/i965/gen8_depth_state.c
> @@ -89,10 +89,10 @@ emit_depth_packets(struct brw_context *brw,
> } else {
> BEGIN_BATCH(5);
> OUT_BATCH(GEN7_3DSTATE_HIER_DEPTH_BUFFER << 16 | (5 - 2));
> - OUT_BATCH((depth_mt->hiz_buf->mt->pitch - 1) | BDW_MOCS_WB << 25);
> - OUT_RELOC64(depth_mt->hiz_buf->mt->bo,
> + OUT_BATCH((depth_mt->hiz_buf->pitch - 1) | BDW_MOCS_WB << 25);
> + OUT_RELOC64(depth_mt->hiz_buf->bo,
> I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, 0);
> - OUT_BATCH(depth_mt->hiz_buf->mt->qpitch >> 2);
> + OUT_BATCH(depth_mt->hiz_buf->qpitch >> 2);
> ADVANCE_BATCH();
> }
>
> --
> 2.0.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list