X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fdrivers%2Fdri%2Fi965%2Fgen8_depth_state.c;h=4930991e3c0f21fd2521effa5c2a4a54d43c4d8e;hb=22d9a4824baf0bf89bb8e39025ad01fecb213888;hp=0eb993fcd7bfc41bfd59b29cea19a01266043f50;hpb=6d5ce1b0433f4cbc5cd88b4bfeaf4cdcba6beda8;p=mesa.git diff --git a/src/mesa/drivers/dri/i965/gen8_depth_state.c b/src/mesa/drivers/dri/i965/gen8_depth_state.c index 0eb993fcd7b..4930991e3c0 100644 --- a/src/mesa/drivers/dri/i965/gen8_depth_state.c +++ b/src/mesa/drivers/dri/i965/gen8_depth_state.c @@ -90,6 +90,7 @@ emit_depth_packets(struct brw_context *brw, OUT_BATCH(0); ADVANCE_BATCH(); } else { + assert(depth_mt); BEGIN_BATCH(5); OUT_BATCH(GEN7_3DSTATE_HIER_DEPTH_BUFFER << 16 | (5 - 2)); OUT_BATCH((depth_mt->hiz_buf->pitch - 1) | mocs_wb << 25); @@ -397,9 +398,9 @@ const struct brw_tracked_state gen8_pma_fix = { */ void gen8_hiz_exec(struct brw_context *brw, struct intel_mipmap_tree *mt, - unsigned int level, unsigned int layer, enum gen6_hiz_op op) + unsigned int level, unsigned int layer, enum blorp_hiz_op op) { - if (op == GEN6_HIZ_OP_NONE) + if (op == BLORP_HIZ_OP_NONE) return; /* Disable the PMA stall fix since we're about to do a HiZ operation. */ @@ -467,16 +468,16 @@ gen8_hiz_exec(struct brw_context *brw, struct intel_mipmap_tree *mt, uint32_t dw1 = 0; switch (op) { - case GEN6_HIZ_OP_DEPTH_RESOLVE: + case BLORP_HIZ_OP_DEPTH_RESOLVE: dw1 |= GEN8_WM_HZ_DEPTH_RESOLVE; break; - case GEN6_HIZ_OP_HIZ_RESOLVE: + case BLORP_HIZ_OP_HIZ_RESOLVE: dw1 |= GEN8_WM_HZ_HIZ_RESOLVE; break; - case GEN6_HIZ_OP_DEPTH_CLEAR: + case BLORP_HIZ_OP_DEPTH_CLEAR: dw1 |= GEN8_WM_HZ_DEPTH_CLEAR; break; - case GEN6_HIZ_OP_NONE: + case BLORP_HIZ_OP_NONE: unreachable("Should not get here."); }