From 7450990558965a38513ce94fbed9a593f8403a98 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 2 Aug 2022 08:11:29 -0400 Subject: [PATCH] zink: don't flag lazy push constant set dirty on batch change this has its own flag cc: mesa-stable Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_descriptors_lazy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_descriptors_lazy.c b/src/gallium/drivers/zink/zink_descriptors_lazy.c index 74e61076ec3..24c05a89a95 100644 --- a/src/gallium/drivers/zink/zink_descriptors_lazy.c +++ b/src/gallium/drivers/zink/zink_descriptors_lazy.c @@ -582,7 +582,7 @@ zink_descriptors_update_lazy(struct zink_context *ctx, bool is_compute) bool batch_changed = !bdd->pg[is_compute]; if (batch_changed) { /* update all sets and bind null sets */ - dd_lazy(ctx)->state_changed[is_compute] = pg->dd->binding_usage; + dd_lazy(ctx)->state_changed[is_compute] = pg->dd->binding_usage & BITFIELD_MASK(ZINK_DESCRIPTOR_TYPES); dd_lazy(ctx)->push_state_changed[is_compute] = !!pg->dd->push_usage; } @@ -649,7 +649,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; + dd_lazy(ctx)->state_changed[is_compute] = 0; } void