dzn: Fix bindless descriptor sets with multiple dynamic buffers that need custom...
authorJesse Natalie <jenatali@microsoft.com>
Wed, 5 Apr 2023 16:53:47 +0000 (09:53 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 22:08:28 +0000 (22:08 +0000)
Fixes: 5d2b4ee4 ("dzn: Allocate descriptor sets in buffers for bindless mode")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22225>

src/microsoft/vulkan/dzn_descriptor_set.c

index 7995ccf..c385fc4 100644 (file)
@@ -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)