diff options
author | Iago Toral Quiroga <[email protected]> | 2018-02-07 09:21:47 +0100 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2018-02-20 08:12:32 +0100 |
commit | af5f2322d0c64f2909944097f69a7151fe68566d (patch) | |
tree | aab69869835ce8ae186d2c0fcb425e9a741181a8 | |
parent | e1a70aed10dcb28b5285221a6cf318bc0e6fe4a2 (diff) |
anv/entrypoints: make vkGetDeviceProcAddr return NULL for instance commands
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_entrypoints_gen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py index c5a654f19b2..34ffedb1165 100644 --- a/src/intel/vulkan/anv_entrypoints_gen.py +++ b/src/intel/vulkan/anv_entrypoints_gen.py @@ -225,7 +225,7 @@ anv_entrypoint_is_enabled(int index, uint32_t core_version, return ${e.core_version.c_vk_version()} <= core_version; % elif e.extension: % if e.extension.type == 'instance': - return instance->${e.extension.name[3:]}; + return !device && instance->${e.extension.name[3:]}; % else: return !device || device->${e.extension.name[3:]}; % endif |