Module: Mesa
Branch: main
Commit: faaf6f95cc478da6ea4f8416bdae7080d9fca77a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=faaf6f95cc478da6ea4f8416bdae7080d9fca77a

Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Feb  7 14:50:16 2023 -0500

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

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

Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21169>

---

 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;

Reply via email to