diff options
author | Eduardo Lima Mitev <[email protected]> | 2020-03-20 09:32:03 +0100 |
---|---|---|
committer | Eduardo Lima Mitev <[email protected]> | 2020-03-21 18:56:07 +0100 |
commit | 55b0a676fdb538095b8d7c6e93a92d702534df39 (patch) | |
tree | 8dd370dfd5e09c85fdc5bbf7d89b9dbfb11d158b /src/freedreno/vulkan | |
parent | 5cc3ab0ba0eed6e730eac869953c052f8b1e9ec2 (diff) |
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 <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4257>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4257>
Diffstat (limited to 'src/freedreno/vulkan')
-rw-r--r-- | src/freedreno/vulkan/tu_entrypoints_gen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_entrypoints_gen.py b/src/freedreno/vulkan/tu_entrypoints_gen.py index facbb69fa78..03c3afc3e7f 100644 --- a/src/freedreno/vulkan/tu_entrypoints_gen.py +++ b/src/freedreno/vulkan/tu_entrypoints_gen.py @@ -206,7 +206,7 @@ tu_entrypoint_is_enabled(int index, uint32_t core_version, % if not e.device_command: if (device) return false; % endif - % if e.name == 'vkCreateInstance' or e.name == 'vkEnumerateInstanceExtensionProperties' or e.name == 'vkEnumerateInstanceLayerProperties' or e.name == 'vkEnumerateInstanceVersion': + % if e.name == 'vkGetInstanceProcAddr' or e.name == 'vkCreateInstance' or e.name == 'vkEnumerateInstanceExtensionProperties' or e.name == 'vkEnumerateInstanceLayerProperties' or e.name == 'vkEnumerateInstanceVersion': return !device; % elif e.core_version: return instance && ${e.core_version.c_vk_version()} <= core_version; |