Mesa (main): zink: assert !rp_changed after renderpass has started

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 25 00:28:40 UTC 2022


Module: Mesa
Branch: main
Commit: 992cd1ae2b7286c70885a7228581a57430bc91bc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=992cd1ae2b7286c70885a7228581a57430bc91bc

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Jul 20 15:27:42 2022 -0400

zink: assert !rp_changed after renderpass has started

avoid weirdness

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17665>

---

 src/gallium/drivers/zink/zink_context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index e18313823e1..e636434178a 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -2353,6 +2353,7 @@ zink_batch_rp(struct zink_context *ctx)
       clear_buffers = zink_begin_render_pass(ctx);
    else
       clear_buffers = begin_rendering(ctx);
+   assert(!ctx->rp_changed);
    if (in_rp || !ctx->batch.in_rp)
       return; //dead swapchain or continued renderpass
    if (ctx->render_condition.query)



More information about the mesa-commit mailing list