From faaf6f95cc478da6ea4f8416bdae7080d9fca77a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 7 Feb 2023 14:50:16 -0500 Subject: [PATCH] zink: use screen indexing for bindless descriptor set in template bind Fixes: 8636717270f ("zink: add a "compact" descriptor mode") Reviewed-by: Emma Anholt Part-of: --- src/gallium/drivers/zink/zink_descriptors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_descriptors.c b/src/gallium/drivers/zink/zink_descriptors.c index 33d4aa7bb55..cdc4a9cac0a 100644 --- a/src/gallium/drivers/zink/zink_descriptors.c +++ b/src/gallium/drivers/zink/zink_descriptors.c @@ -1202,7 +1202,7 @@ zink_descriptors_update(struct zink_context *ctx, bool is_compute) &offset); } else { VKCTX(CmdBindDescriptorSets)(ctx->batch.state->cmdbuf, is_compute ? VK_PIPELINE_BIND_POINT_COMPUTE : VK_PIPELINE_BIND_POINT_GRAPHICS, - pg->layout, ZINK_DESCRIPTOR_BINDLESS, 1, &ctx->dd.t.bindless_set, + pg->layout, screen->desc_set_id[ZINK_DESCRIPTOR_BINDLESS], 1, &ctx->dd.t.bindless_set, 0, NULL); } ctx->dd.bindless_bound = true;