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

Author: Jesse Natalie <[email protected]>
Date:   Wed Apr  5 09:53:47 2023 -0700

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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22225>

---

 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)

Reply via email to