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>
This commit is contained in:
Jesse Natalie 2023-04-05 09:53:47 -07:00 committed by Marge Bot
parent 04fa6c715b
commit a3e5e6ceaa

View 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)