zink: use screen indexing for bindless descriptor set in template bind

Fixes: 8636717270 ("zink: add a "compact" descriptor mode")

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21169>
This commit is contained in:
Mike Blumenkrantz 2023-02-07 14:50:16 -05:00 committed by Marge Bot
parent 7bd5122430
commit faaf6f95cc

View file

@ -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;