Mesa (main): zink: always use zink_batch_rp to init renderpass

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri May 20 16:58:31 UTC 2022


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Mon May  9 11:20:13 2022 -0400

zink: always use zink_batch_rp to init renderpass

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

---

 src/gallium/drivers/zink/zink_context.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index b63e242668a..c92a0d9ac91 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -2599,7 +2599,7 @@ flush_batch(struct zink_context *ctx, bool sync)
    struct zink_batch *batch = &ctx->batch;
    if (ctx->clears_enabled)
       /* start rp to do all the clears */
-      zink_begin_render_pass(ctx);
+      zink_batch_rp(ctx);
    bool conditional_render_active = ctx->render_condition.active;
    zink_stop_conditional_render(ctx);
    zink_end_render_pass(ctx);
@@ -3237,7 +3237,7 @@ zink_flush(struct pipe_context *pctx,
    /* triggering clears will force has_work */
    if (!deferred && ctx->clears_enabled)
       /* start rp to do all the clears */
-      zink_begin_render_pass(ctx);
+      zink_batch_rp(ctx);
 
    if (ctx->needs_present && (flags & PIPE_FLUSH_END_OF_FRAME)) {
       if (ctx->needs_present->obj->image)



More information about the mesa-commit mailing list