uint32_t
brw_depthbuffer_format(struct brw_context *brw);
+/* gen8_depth_state.c */
+void gen8_write_pma_stall_bits(struct brw_context *brw,
+ uint32_t pma_stall_bits);
+
/* gen8_misc_state.c */
void gen8_upload_state_base_address(struct brw_context *brw);
(kill_pixel && (depth_writes_enabled || stencil_writes_enabled)));
}
-static void
-write_pma_stall_bits(struct brw_context *brw, uint32_t pma_stall_bits)
+void
+gen8_write_pma_stall_bits(struct brw_context *brw, uint32_t pma_stall_bits)
{
struct gl_context *ctx = &brw->ctx;
if (pma_fix_enable(brw))
bits |= GEN8_HIZ_NP_PMA_FIX_ENABLE | GEN8_HIZ_NP_EARLY_Z_FAILS_DISABLE;
- write_pma_stall_bits(brw, bits);
+ gen8_write_pma_stall_bits(brw, bits);
}
const struct brw_tracked_state gen8_pma_fix = {
/* Disable the PMA stall fix since we're about to do a HiZ operation. */
if (brw->gen == 8)
- write_pma_stall_bits(brw, 0);
+ gen8_write_pma_stall_bits(brw, 0);
assert(mt->first_level == 0);
assert(mt->logical_depth0 >= 1);