https://bugs.winehq.org/show_bug.cgi?id=49542
Bug ID: 49542 Summary: vkGetInstanceProcAddr shouldn't return an address for missing functions Product: Wine Version: 5.12 Hardware: x86-64 OS: Mac OS X Status: NEW Severity: normal Priority: P2 Component: winevulkan Assignee: wine-bugs@winehq.org Reporter: gijsvrm@gmail.com
Created attachment 67677 --> https://bugs.winehq.org/attachment.cgi?id=67677 +vulkan log
This causes test_enumerate_physical_device2() in vulkan-1/tests/vulkan.c to crash on macOS.
It tries to call vkGetPhysicalDeviceProperties2 which is missing from MoltenVK. The test has a skip if it can't find vkGetPhysicalDeviceProperties2, but it isn't triggered.
The problem I've "found" is that macdrv_vkGetInstanceProcAddr correctly returns NULL for vkGetPhysicalDeviceProperties2, but in the test it uses vkGetInstanceProcAddr. vkGetInstanceProcAddr goes to wine_vkGetInstanceProcAddr and that uses wine_vk_get_instance_proc_addr. wine_vk_get_instance_proc_addr doesn't return NULL, because it just checks some sort of table.
Attached is a +vulkan log.
I'm running macOS 10.14, wine compiled with mingw and the 10.13 SDK.
https://bugs.winehq.org/show_bug.cgi?id=49542
Liam Middlebrook loothelion@nvidia.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |loothelion@nvidia.com
https://bugs.winehq.org/show_bug.cgi?id=49542
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |11cfbe5c891f90af67a01e86e34 | |57088bafbe33e Status|NEW |RESOLVED
--- Comment #1 from Gijs Vermeulen gijsvrm@gmail.com --- Fixed by: https://source.winehq.org/git/wine.git/commit/11cfbe5c891f90af67a01e86e34570...
https://bugs.winehq.org/show_bug.cgi?id=49542
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.16.