Open TheMagehawk opened 10 months ago
Bit of a necropost, but I hit this same issue using Vulkan 1.3/SDL on RADV.
Special-casing vkEnumerateInstanceVersion
and vkEnumerateInstanceExtensionProperties
fixes it, similar to https://github.com/Dav1dde/glad/issues/329#issuecomment-854694410
e.g.
if(strcmp("vkEnumerateInstanceVersion", name) == 0 || strcmp("vkEnumerateInstanceExtensionProperties", name) == 0)
return self->getInstanceProcAddr(NULL, name);
return self->getInstanceProcAddr(self->vulkan, name);
API: Vulkan 1.3 Windowing Library: SDL2 Build System Generator: CMake
During the Vulkan Setup Process, I encounter an issue with Surface related vk functions.
This particular function causes a Segmentation Fault:
I generate the glad library with CMake:
It works, if I use the system-wide Vulkan package instead without applying the glad load functions, so it's probably related to missing symbols:
Here is a summarized overview of the Vulkan Setup Process:
I also notice that, if I create a VkInstance with the Application API Version set to Vulkan 1.2 or lower (even if I generate for Vulkan 1.3 on glad), the problem suddenly disappears.
Following code change fixes the issue, but restricts usage to Vulkan <=1.2:
I couldn't figure out what specifically made it work on Vulkan 1.2, but I applied no other changes.
EDIT: On Android (Android 14) it fails on exactly the same function call on any selected VK_API_VERSION1*