anv/entrypoints: make vkGetDeviceProcAddr return NULL for instance commands

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Iago Toral Quiroga 2018-02-07 09:21:47 +01:00
parent e1a70aed10
commit af5f2322d0
1 changed files with 1 additions and 1 deletions

View File

@ -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