From b140d58b1f93c0a2dc900c8147f438294f3ccd6e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 13 Oct 2021 09:16:35 -0400 Subject: [PATCH] zink: don't update lazy descriptor states in hybrid mode I'm not 100% sure how, but this breaks tomb raider Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_descriptors_lazy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/zink/zink_descriptors_lazy.c b/src/gallium/drivers/zink/zink_descriptors_lazy.c index ad922dc1cd7..b4b5988cd5f 100644 --- a/src/gallium/drivers/zink/zink_descriptors_lazy.c +++ b/src/gallium/drivers/zink/zink_descriptors_lazy.c @@ -536,9 +536,6 @@ zink_descriptors_update_lazy_masked(struct zink_context *ctx, bool is_compute, u dd_lazy(ctx)->push_state_changed[is_compute] = false; } } - bdd->pg[is_compute] = pg; - ctx->dd->pg[is_compute] = pg; - bdd->compat_id[is_compute] = pg->compat_id; } void @@ -581,6 +578,9 @@ zink_descriptors_update_lazy(struct zink_context *ctx, bool is_compute) 0, NULL); ctx->dd->bindless_bound = true; } + bdd->pg[is_compute] = pg; + ctx->dd->pg[is_compute] = pg; + bdd->compat_id[is_compute] = pg->compat_id; } void