Mesa (main): zink: move last of lazy descriptor state updating back to lazy-only code

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


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

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

zink: move last of lazy descriptor state updating back to lazy-only code

hybrid mode is controlled by the caching manager, so state tracking is irrelevant

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_descriptors_lazy.c b/src/gallium/drivers/zink/zink_descriptors_lazy.c
index f9bf1487ab4..480e02dd8b5 100644
--- a/src/gallium/drivers/zink/zink_descriptors_lazy.c
+++ b/src/gallium/drivers/zink/zink_descriptors_lazy.c
@@ -495,7 +495,6 @@ zink_descriptors_update_lazy_masked(struct zink_context *ctx, bool is_compute, u
                               pg->layout, type + 1, 1, &bdd->sets[is_compute][type + 1],
                               0, NULL);
    }
-   dd_lazy(ctx)->state_changed[is_compute] = false;
 }
 
 void
@@ -583,6 +582,7 @@ zink_descriptors_update_lazy(struct zink_context *ctx, bool is_compute)
    bdd->pg[is_compute] = pg;
    ctx->dd->pg[is_compute] = pg;
    bdd->compat_id[is_compute] = pg->compat_id;
+   dd_lazy(ctx)->state_changed[is_compute] = false;
 }
 
 void



More information about the mesa-commit mailing list