zink: move last of lazy descriptor state updating back to lazy-only code
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 13 Oct 2021 13:34:00 +0000 (09:34 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 Oct 2021 00:51:50 +0000 (00:51 +0000)
hybrid mode is controlled by the caching manager, so state tracking is irrelevant

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

src/gallium/drivers/zink/zink_descriptors_lazy.c

index f9bf148..480e02d 100644 (file)
@@ -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