Skip to content

vulkan/util: add vk_default_allocator

Chia-I Wu requested to merge olv/mesa:vk-default-alloc into main

We cannot use os_{malloc,free,realloc}_aligned because os_realloc_aligned needs the old size for memcpy. As a result, we assert that the caller-provided alignment can divide _Alignof(max_align_t).

The motivation is to fix 32-bit ARM builds (#4870 (closed)).

Merge request reports