Skip to content

vulkan: Fix Android Vulkan wrapper crash issue with Vulkan v1.1+

Android apps use Vulkan wrapper from the framework which will request
and use Vulkan 1.1+ entrypoints even if Application requested Vulkan v1.0

In this case mesa3d will return NULL on vkGetPhysicalDeviceProperties2{KHR}
requests, which wrapper will eventually use and crash trying to jump to the
nullptr address [1]
  1. https://cs.android.com/android/platform/superproject/+/master:frameworks/native/vulkan/libvulkan/driver.cpp;l=1431;drc=9058b8fe8c00609768a828e3e1476d7f24754fed

Merge request reports