Mesa (master): anv/entrypoints: make vkGetDeviceProcAddr return NULL for instance commands

Iago Toral Quiroga itoral at kemper.freedesktop.org
Tue Feb 20 07:17:04 UTC 2018


Module: Mesa
Branch: master
Commit: af5f2322d0c64f2909944097f69a7151fe68566d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=af5f2322d0c64f2909944097f69a7151fe68566d

Author: Iago Toral Quiroga <itoral at igalia.com>
Date:   Wed Feb  7 09:21:47 2018 +0100

anv/entrypoints: make vkGetDeviceProcAddr return NULL for instance commands

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/intel/vulkan/anv_entrypoints_gen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py
index c5a654f19b..34ffedb116 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




More information about the mesa-commit mailing list