The open source OpenXR runtime

aux/vk: respect VUID-VkMemoryAllocateInfo-pNext-01874 in create_image

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2332>

authored by

Simon Zeni and committed by
Rylie Pavlik
86905440 241b4c6a

+5 -1
+4
doc/changes/misc_fixes/mr.2332.md
··· 1 + --- 2 + - issue.428 3 + --- 4 + - Fix validation errors and Vulkan API usage.
+1 -1
src/xrt/auxiliary/vk/vk_image_allocator.c
··· 288 288 // VUID-VkMemoryAllocateInfo-pNext-01874 289 289 // Use the requirements from the VkAndroidHardwareBufferPropertiesANDROID instead of querying them 290 290 VkMemoryRequirements android_memory_requirements = { 291 - .size = a_buffer_props.allocationSize, 291 + .size = 0, 292 292 .memoryTypeBits = a_buffer_props.memoryTypeBits, 293 293 }; 294 294 requirements = &android_memory_requirements;