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

Author: Mike Blumenkrantz <[email protected]>
Date:   Mon May  9 12:24:04 2022 -0400

zink: remove fb rebind check during renderpass begin

Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16476>

---

 src/gallium/drivers/zink/zink_render_pass.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_render_pass.c 
b/src/gallium/drivers/zink/zink_render_pass.c
index e01314402e0..51152d18a28 100644
--- a/src/gallium/drivers/zink/zink_render_pass.c
+++ b/src/gallium/drivers/zink/zink_render_pass.c
@@ -484,10 +484,6 @@ prep_fb_attachments(struct zink_context *ctx, VkImageView 
*att)
    for (int i = 0; i < ctx->fb_state.nr_cbufs; i++) {
       struct zink_surface *surf = zink_csurface(ctx->fb_state.cbufs[i]);
       struct zink_surface *transient = 
zink_transient_surface(ctx->fb_state.cbufs[i]);
-      if (surf && zink_resource(surf->base.texture)->obj != surf->obj) {
-         zink_resource_rebind(ctx, zink_resource(surf->base.texture));
-         surf = zink_csurface(ctx->fb_state.cbufs[i]);
-      }
       if (transient) {
          att[i] = zink_prep_fb_attachment(ctx, transient, i);
          att[i + cresolve_offset] = zink_prep_fb_attachment(ctx, surf, i);

Reply via email to