nvk: Fix dynamic buffer descriptor copies
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
committed by
Marge Bot
parent
c88cf7828d
commit
e1af0f983f
@@ -214,8 +214,17 @@ nvk_UpdateDescriptorSets(VkDevice device,
|
||||
}
|
||||
|
||||
switch (src_binding_layout->type) {
|
||||
/* Insert any special copy stuff here */
|
||||
|
||||
case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC:
|
||||
case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC: {
|
||||
const uint32_t dst_dyn_start =
|
||||
dst_binding_layout->dynamic_buffer_index + copy->dstArrayElement;
|
||||
const uint32_t src_dyn_start =
|
||||
src_binding_layout->dynamic_buffer_index + copy->srcArrayElement;
|
||||
typed_memcpy(&dst->dynamic_buffers[dst_dyn_start],
|
||||
&src->dynamic_buffers[src_dyn_start],
|
||||
copy->descriptorCount);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user