Smithay / smithay

A smithy for rusty wayland compositors
MIT License
1.81k stars 154 forks source link

Support VK_KHR_dedicated_allocation in Vulkan allocator #972

Open i509VCB opened 1 year ago

i509VCB commented 1 year ago

While working on the Vulkan renderer this came to mind.

Per the specification:

Since the Vulkan allocator creates images with a drm tiling and images that are exportable this is worth considering.

There are also benefits to considering the prefersDedicatedAllocation suggestion since the driver may be able to allocate with a more optimal memory type.

In the case of the allocator I would not consider this to be mandatory extension.

i509VCB commented 1 year ago

Further info: more than 90% of Vulkan implementations on Linux support dedicated allocations, so requiring dedicated allocations would be fine.