diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-09-28 15:11:38 -0600 |
|---|---|---|
| committer | Mike Schuchardt <mikes@lunarg.com> | 2018-03-09 13:54:31 -0700 |
| commit | 85ac95c7aab30c18826f458832d076572a0ee267 (patch) | |
| tree | 7c5dc9ec923b4277de07ed4c33cc916ea814b8ef /scripts | |
| parent | bd2d31f4e5a968b8204e6ba398feed55f4b4e343 (diff) | |
| download | usermoji-85ac95c7aab30c18826f458832d076572a0ee267.tar.xz | |
scripts: Fix loader extension generator
Was incorrectly creating device/instance dispatch tables.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/loader_extension_generator.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/loader_extension_generator.py b/scripts/loader_extension_generator.py index 9c2e34d5..5c92e35b 100644 --- a/scripts/loader_extension_generator.py +++ b/scripts/loader_extension_generator.py @@ -452,9 +452,7 @@ class LoaderExtensionOutputGenerator(OutputGenerator): commands = self.ext_commands for cur_cmd in commands: - is_inst_handle_type = cur_cmd.ext_type == 'instance' or cur_cmd.handle_type == 'VkInstance' or cur_cmd.handle_type == 'VkPhysicalDevice' - if is_inst_handle_type: - + if cur_cmd.handle_type == 'VkInstance' or 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:] @@ -493,9 +491,7 @@ class LoaderExtensionOutputGenerator(OutputGenerator): commands = self.ext_commands for cur_cmd in commands: - is_inst_handle_type = cur_cmd.ext_type == 'instance' or cur_cmd.handle_type == 'VkInstance' or cur_cmd.handle_type == 'VkPhysicalDevice' - if not is_inst_handle_type: - + if cur_cmd.handle_type != 'VkInstance' 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:] |
