vulkan: rework EnumerateDeviceExtensionProperties_Bottom
The reworked driver::EnumerateDeviceExtensionProperties will simply return
all extensions enumerated by HAL, with VK_ANDROID_native_buffer replaced
by VK_KHR_swapchain. This allows extensions unknown to the loader to be
enumerated.
Change-Id: Iceed8ee3f16a968d005ae3ba42f1bd1839c2ab9f
diff --git a/vulkan/libvulkan/code-generator.tmpl b/vulkan/libvulkan/code-generator.tmpl
index 3a6f0a9..e06ce12 100644
--- a/vulkan/libvulkan/code-generator.tmpl
+++ b/vulkan/libvulkan/code-generator.tmpl
@@ -790,12 +790,12 @@
{{else}}
ProcHook::EXTENSION_CORE,
- {{if eq $.Name "vkGetInstanceProcAddr"}}
- reinterpret_cast<PFN_vkVoidFunction>({{$base}}),
- {{else if eq $.Name "vkCreateDevice"}}
- reinterpret_cast<PFN_vkVoidFunction>({{$base}}),
- {{else}}
+ {{if eq $.Name "vkDestroyInstance"}}
reinterpret_cast<PFN_vkVoidFunction>({{$base}}_Bottom),
+ {{else if eq $.Name "vkEnumeratePhysicalDevices"}}
+ reinterpret_cast<PFN_vkVoidFunction>({{$base}}_Bottom),
+ {{else}}
+ reinterpret_cast<PFN_vkVoidFunction>({{$base}}),
{{end}}
nullptr,
nullptr,