aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLenny Komow <lenny@lunarg.com>2017-05-08 14:38:08 -0600
committerLenny Komow <lenny@lunarg.com>2017-05-08 14:38:08 -0600
commitfdc90a93e894c90656cc900b5ea8188381a57b71 (patch)
tree2144327608ac0d443eca5133920f3bdb47864452 /scripts
parent55484d2becdbe11432130809b81b9de41463622a (diff)
downloadusermoji-fdc90a93e894c90656cc900b5ea8188381a57b71.tar.xz
loader: gh1661 - Phys dev exts not loading
Fix a bug whereby commands from physical device extensions were not being written to the instance extension dispatch table, preventing their terminators from ever being run. Change-Id: I38dab0ae6463674f2a1f572bc0ee1eebe8d0dd13
Diffstat (limited to 'scripts')
-rw-r--r--scripts/loader_extension_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/loader_extension_generator.py b/scripts/loader_extension_generator.py
index 0a0f04e7..21943315 100644
--- a/scripts/loader_extension_generator.py
+++ b/scripts/loader_extension_generator.py
@@ -1243,7 +1243,7 @@ class LoaderExtensionOutputGenerator(OutputGenerator):
commands = self.ext_commands
for cur_cmd in commands:
- if cur_cmd.ext_type == 'instance':
+ if cur_cmd.ext_type == 'instance' or (cur_cmd.ext_type == 'device' and cur_cmd.handle_type == 'VkPhysicalDevice'):
if cur_cmd.ext_name != cur_extension_name:
if 'VK_VERSION_' in cur_cmd.ext_name:
table += '\n // ---- Core %s commands\n' % cur_cmd.ext_name[11:]