anv/entrypoints: make vkGetDeviceProcAddr return NULL for instance commands
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 7 Feb 2018 08:21:47 +0000 (09:21 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 20 Feb 2018 07:12:32 +0000 (08:12 +0100)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_entrypoints_gen.py

index c5a654f19b201c6fb367c44308729d44f4de7735..34ffedb1165fd8f2f3bed37b4991d4baa1962edd 100644 (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