this will always be a no-op, so save the cpu cycles
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21988>
if (!zink_screen(ctx->base.screen)->driver_workarounds.track_renderpasses && !ctx->blitting)
zink_parse_tc_info(ctx);
}
- bool zs_write = ctx->dsa_state ? ctx->dsa_state->hw_state.depth_write || ctx->dsa_state->hw_state.stencil_test : false;
- if (prev_zswrite != zs_write) {
- /* flag renderpass for re-check on next draw */
- ctx->rp_layout_changed = true;
+ if (!zink_screen(ctx->base.screen)->driver_workarounds.track_renderpasses && !ctx->blitting) {
+ bool zs_write = ctx->dsa_state ? ctx->dsa_state->hw_state.depth_write || ctx->dsa_state->hw_state.stencil_test : false;
+ if (prev_zswrite != zs_write) {
+ /* flag renderpass for re-check on next draw */
+ ctx->rp_layout_changed = true;
+ }
}
}