turnip: Instance can be NULL resolving 'GetInstanceProcAddr' entry point
authorEduardo Lima Mitev <elima@igalia.com>
Fri, 20 Mar 2020 08:32:03 +0000 (09:32 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Sat, 21 Mar 2020 17:56:07 +0000 (18:56 +0100)
commit55b0a676fdb538095b8d7c6e93a92d702534df39
tree8dd370dfd5e09c85fdc5bbf7d89b9dbfb11d158b
parent5cc3ab0ba0eed6e730eac869953c052f8b1e9ec2
turnip: Instance can be NULL resolving 'GetInstanceProcAddr' entry point

Using turnip driver without a vulkan loader is currently broken because
the entry point resolver is expecting a valid instance when resolving
'vkGetInstanceProcAddr' through vk_icdGetInstanceProcAddr().

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4257>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4257>
src/freedreno/vulkan/tu_entrypoints_gen.py