mirror of
https://github.com/openharmony/third_party_vulkan-loader.git
synced 2026-07-19 17:13:36 -04:00
Remove hasing of unknown functions
Use a simple linear search instead. This greatly simplifies the logic and reduces the places for the logic to go awry.
This commit is contained in:
committed by
Charles Giessen
parent
b986091316
commit
dec1fcac60
@@ -768,7 +768,7 @@ class LoaderExtensionOutputGenerator(OutputGenerator):
|
||||
tables += ' VkDevice dev) {\n'
|
||||
tables += ' VkLayerDispatchTable *table = &dev_table->core_dispatch;\n'
|
||||
tables += ' table->magic = DEVICE_DISP_TABLE_MAGIC_NUMBER;\n'
|
||||
tables += ' for (uint32_t i = 0; i < MAX_NUM_UNKNOWN_EXTS; i++) dev_table->ext_dispatch.dev_ext[i] = (PFN_vkDevExt)vkDevExtError;\n'
|
||||
tables += ' for (uint32_t i = 0; i < MAX_NUM_UNKNOWN_EXTS; i++) dev_table->ext_dispatch[i] = (PFN_vkDevExt)vkDevExtError;\n'
|
||||
|
||||
elif x == 1:
|
||||
cur_type = 'device'
|
||||
|
||||
Reference in New Issue
Block a user