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

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 21 22:06:02 UTC 2021


Module: Mesa
Branch: staging/21.3
Commit: 692a0e7171bbfb3000f5816c2dd8d84f74b2a1dc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=692a0e7171bbfb3000f5816c2dd8d84f74b2a1dc

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/13429>

---

 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