zink: don't flag renderpass change on depth write change as often

this is only "sometimes" required and only if dynamic render isn't being
used

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17640>
This commit is contained in:
Mike Blumenkrantz 2022-07-14 18:04:46 -04:00 committed by Marge Bot
parent d079e3c9b6
commit ca3d696f80
1 changed files with 1 additions and 1 deletions

View File

@ -533,8 +533,8 @@ zink_bind_depth_stencil_alpha_state(struct pipe_context *pctx, void *cso)
}
}
if (prev_zwrite != (ctx->dsa_state ? ctx->dsa_state->hw_state.depth_write : false)) {
/* flag renderpass for re-check on next draw */
ctx->rp_changed = true;
zink_batch_no_rp(ctx);
}
}