zink: add an assert to verify that deferred clears aren't added in renderpass

this would be very, very broken

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-15 09:27:06 -04:00 committed by Marge Bot
parent d9a320b62c
commit 9b087dcccd
1 changed files with 1 additions and 0 deletions

View File

@ -291,6 +291,7 @@ zink_clear(struct pipe_context *pctx,
else
ctx->rp_clears_enabled |= (buffers & PIPE_CLEAR_DEPTHSTENCIL);
}
assert(!ctx->batch.in_rp);
ctx->rp_changed |= ctx->rp_clears_enabled != rp_clears_enabled;
}