From a3e5e6ceaa0ae9d44ab3219b0ac52599e2246976 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Wed, 5 Apr 2023 09:53:47 -0700 Subject: [PATCH] dzn: Fix bindless descriptor sets with multiple dynamic buffers that need custom descriptors Fixes: 5d2b4ee4 ("dzn: Allocate descriptor sets in buffers for bindless mode") Part-of: --- src/microsoft/vulkan/dzn_descriptor_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsoft/vulkan/dzn_descriptor_set.c b/src/microsoft/vulkan/dzn_descriptor_set.c index 7995ccfb01f..c385fc4e129 100644 --- a/src/microsoft/vulkan/dzn_descriptor_set.c +++ b/src/microsoft/vulkan/dzn_descriptor_set.c @@ -2143,7 +2143,7 @@ dzn_descriptor_set_write(struct dzn_device *device, pDescriptorWrite->descriptorType, dzn_buffer_from_handle(binfo->buffer), binfo->range, binfo->offset, - &set->buffer_heap_slots[set->layout->bindings[ptr.binding].buffer_idx] + &set->buffer_heap_slots[dzn_descriptor_set_ptr_get_buffer_idx(set->layout, &ptr)] }; if (desc.buffer)