VMA-assert-remove.patch 1.4 KB

1234567891011121314151617181920212223242526272829
  1. diff --git a/thirdparty/vulkan/vk_mem_alloc.h b/thirdparty/vulkan/vk_mem_alloc.h
  2. index 0dfb66efc6..8a42699e7f 100644
  3. --- a/thirdparty/vulkan/vk_mem_alloc.h
  4. +++ b/thirdparty/vulkan/vk_mem_alloc.h
  5. @@ -17508,24 +17508,6 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateBuffer(
  6. allocator->GetBufferMemoryRequirements(*pBuffer, vkMemReq,
  7. requiresDedicatedAllocation, prefersDedicatedAllocation);
  8. - // Make sure alignment requirements for specific buffer usages reported
  9. - // in Physical Device Properties are included in alignment reported by memory requirements.
  10. - if((pBufferCreateInfo->usage & VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT) != 0)
  11. - {
  12. - VMA_ASSERT(vkMemReq.alignment %
  13. - allocator->m_PhysicalDeviceProperties.limits.minTexelBufferOffsetAlignment == 0);
  14. - }
  15. - if((pBufferCreateInfo->usage & VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT) != 0)
  16. - {
  17. - VMA_ASSERT(vkMemReq.alignment %
  18. - allocator->m_PhysicalDeviceProperties.limits.minUniformBufferOffsetAlignment == 0);
  19. - }
  20. - if((pBufferCreateInfo->usage & VK_BUFFER_USAGE_STORAGE_BUFFER_BIT) != 0)
  21. - {
  22. - VMA_ASSERT(vkMemReq.alignment %
  23. - allocator->m_PhysicalDeviceProperties.limits.minStorageBufferOffsetAlignment == 0);
  24. - }
  25. -
  26. // 3. Allocate memory using allocator.
  27. res = allocator->AllocateMemory(
  28. vkMemReq,