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

Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Mar 13 07:57:45 2023 -0400

zink: only flag rp info for updating on flush, don't actually update

this is more consistent with actual usage

also sanitize rp info on flush to ensure it isn't reused

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21800>

---

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

diff --git a/src/gallium/drivers/zink/zink_context.c 
b/src/gallium/drivers/zink/zink_context.c
index 69accf68d23..05eeb4b1598 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -3133,6 +3133,8 @@ flush_batch(struct zink_context *ctx, bool sync)
          zink_start_conditional_render(ctx);
       reapply_color_write(ctx);
       update_layered_rendering_state(ctx);
+      tc_renderpass_info_reset(&ctx->dynamic_fb.tc_info);
+      ctx->rp_tc_info_updated = true;
    }
 }
 
@@ -4186,7 +4188,6 @@ zink_flush(struct pipe_context *pctx,
       if (!(flags & (PIPE_FLUSH_DEFERRED | PIPE_FLUSH_ASYNC)))
          sync_flush(ctx, zink_batch_state(fence));
    }
-   update_tc_info(ctx, false);
 }
 
 void

Reply via email to