zink: don't flag rp layout check on next draw when rp optimizing
this will always be a no-op, so save the cpu cycles Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21988>
This commit is contained in:

committed by
Marge Bot

parent
d6e40b7d54
commit
c900b9e35f
@@ -525,10 +525,12 @@ zink_bind_depth_stencil_alpha_state(struct pipe_context *pctx, void *cso)
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user