From: Mike Blumenkrantz Date: Tue, 7 Feb 2023 19:50:16 +0000 (-0500) Subject: zink: use screen indexing for bindless descriptor set in template bind X-Git-Tag: upstream/22.3.5~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=deccd02888860e58a7fbe700392accd7e7d5b98c;p=platform%2Fupstream%2Fmesa.git 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: (cherry picked from commit faaf6f95cc478da6ea4f8416bdae7080d9fca77a) --- diff --git a/.pick_status.json b/.pick_status.json index 8ff4b7e..0e32826 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -445,7 +445,7 @@ "description": "zink: use screen indexing for bindless descriptor set in template bind", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "8636717270f1ecd7d6a99f165f99b201c20dbf80" }, diff --git a/src/gallium/drivers/zink/zink_descriptors.c b/src/gallium/drivers/zink/zink_descriptors.c index 41aa63c..f8c8467 100644 --- a/src/gallium/drivers/zink/zink_descriptors.c +++ b/src/gallium/drivers/zink/zink_descriptors.c @@ -974,7 +974,7 @@ zink_descriptors_update(struct zink_context *ctx, bool is_compute) /* bindless descriptors are context-based and get updated elsewhere */ if (pg->dd.bindless && unlikely(!ctx->dd.bindless_bound)) { 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.bindless_set, + pg->layout, screen->desc_set_id[ZINK_DESCRIPTOR_BINDLESS], 1, &ctx->dd.bindless_set, 0, NULL); ctx->dd.bindless_bound = true; }