summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2022-08-02 08:11:29 -0400
committerMarge Bot <emma+marge@anholt.net>2022-08-03 12:24:46 +0000
commit7450990558965a38513ce94fbed9a593f8403a98 (patch)
treecb1eb244ad94ae6502b388ba9bfd767f0faa27d5
parentc7ef4f97350900fb6f9b05e1d1ec4e695033f0f9 (diff)
downloadmesa-7450990558965a38513ce94fbed9a593f8403a98.tar.gz
zink: don't flag lazy push constant set dirty on batch change
this has its own flag cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17866>
-rw-r--r--src/gallium/drivers/zink/zink_descriptors_lazy.c4
1 files 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