Skip to content

vulkan: stash callback allocator in the descriptor set layout

This issue/fix has been found in the process of rebasing the pvr driver on mesa/main. However, the line touching the pvr driver has to wait before making it upstream.

vulkan: stash callback allocator in the descriptor set layout

The common functions used by drivers to allocate a descriptor set layout
currently use the allocator stored as part of the VkDevice rather than the
one passed into vkCreateDescriptorSetLayout(), which might not be what an
application expects. Change this to use the one passed into
vkCreateDescriptorSetLayout().

Reference for allocator callbacks can be found in the Vulkan spec, notably
under "Chapter 11. Memory Allocation".

Fix deqp-vk "QualityWarning">Allocation callbacks not called
  dEQP-VK.api.object_management.alloc_callback_fail.descriptor_set_layout_empty

Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>

Merge request reports

Loading