Mesa (main): zink: don't update lazy descriptor states in hybrid mode

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 19 01:02:56 UTC 2021


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Oct 13 09:16:35 2021 -0400

zink: don't update lazy descriptor states in hybrid mode

I'm not 100% sure how, but this breaks tomb raider

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

---

 src/gallium/drivers/zink/zink_descriptors_lazy.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_descriptors_lazy.c b/src/gallium/drivers/zink/zink_descriptors_lazy.c
index ad922dc1cd7..b4b5988cd5f 100644
--- a/src/gallium/drivers/zink/zink_descriptors_lazy.c
+++ b/src/gallium/drivers/zink/zink_descriptors_lazy.c
@@ -536,9 +536,6 @@ zink_descriptors_update_lazy_masked(struct zink_context *ctx, bool is_compute, u
          dd_lazy(ctx)->push_state_changed[is_compute] = false;
       }
    }
-   bdd->pg[is_compute] = pg;
-   ctx->dd->pg[is_compute] = pg;
-   bdd->compat_id[is_compute] = pg->compat_id;
 }
 
 void
@@ -581,6 +578,9 @@ zink_descriptors_update_lazy(struct zink_context *ctx, bool is_compute)
                                    0, NULL);
       ctx->dd->bindless_bound = true;
    }
+   bdd->pg[is_compute] = pg;
+   ctx->dd->pg[is_compute] = pg;
+   bdd->compat_id[is_compute] = pg->compat_id;
 }
 
 void



More information about the mesa-commit mailing list