You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hitting another crash on our 1.1 Android 9 devices. This code seems to just assert on this extension, but we weren't loading the extension nor was that documented for using VMA. Also the KHR extension isn't needed on 1.2+. So this is similar to the failure with the 1.3 asserts, but there the code conditionally test.
For now, we'll just remove this assert. I'm assuming this was a Vulkan 1.1 part, and so it should have had the vkGetPhysicalDeviceMemoryProperties2 which the code sets vkGetPhysicalDeviceMemoryProperties2KHR to.
This is the assert that fails at startup. I'll dig through vulkan.gpuinfo.org, since this is a player device, and not one that I have.
#if VMA_MEMORY_BUDGET || VMA_VULKAN_VERSION >= 1001000
// This is also asserting on 1.1, why not make these optional
// KRH requires the caller to have loaded the extension, but 1.1 should have the function.
// also should this be check for == instead of >=, there
if(m_UseExtMemoryBudget || m_VulkanApiVersion >= VK_MAKE_VERSION(1, 1, 0))
{
VMA_ASSERT(m_VulkanFunctions.vkGetPhysicalDeviceMemoryProperties2KHR != VMA_NULL);
}
#endif
The text was updated successfully, but these errors were encountered:
I made some fixes in importing m_VulkanFunctions.vkGetPhysicalDeviceMemoryProperties2KHR for various cases of Vulkan version and extension availability, but these could result in compilation errors rather than the assert failing.
What method of importing Vulkan functions do you use? VMA_STATIC_VULKAN_FUNCTIONS, VMA_DYNAMIC_VULKAN_FUNCTIONS, or you provide VmaVulkanFunctions?
What suspected bug in VMA do you report here?
Function vkGetPhysicalDeviceMemoryProperties2KHR should be set whenever:
You recognized Vulkan >= 1.1 is available and you enabled such version, indicated by VmaAllocatorCreateInfo::vulkanApiVersion (fetched as "vkGetPhysicalDeviceMemoryProperties2") or
You recognized VK_KHR_get_physical_device_properties2 instance extension is available and you enabled it, along with VK_EXT_memory_budget, indicated by VMA_ALLOCATOR_CREATE_EXT_MEMORY_BUDGET_BIT (fetched as "vkGetPhysicalDeviceMemoryProperties2KHR").
And this is what this assert checks, so I think it is correct.
Hitting another crash on our 1.1 Android 9 devices. This code seems to just assert on this extension, but we weren't loading the extension nor was that documented for using VMA. Also the KHR extension isn't needed on 1.2+. So this is similar to the failure with the 1.3 asserts, but there the code conditionally test.
Samsung SM-g955f w/Mali-G71 running Android 9, Android 28, Galaxy S8+, Vulkan 1.1?
For now, we'll just remove this assert. I'm assuming this was a Vulkan 1.1 part, and so it should have had the vkGetPhysicalDeviceMemoryProperties2 which the code sets vkGetPhysicalDeviceMemoryProperties2KHR to.
Code that sets up the function ptr.
This is the assert that fails at startup. I'll dig through vulkan.gpuinfo.org, since this is a player device, and not one that I have.
The text was updated successfully, but these errors were encountered: