diff options
| author | 2017-01-19 17:38:08 +0000 | |
|---|---|---|
| committer | 2017-01-19 17:38:09 +0000 | |
| commit | 84b9bc0e98511fb707edb27ff0c7e885db881a7e (patch) | |
| tree | e327b82c99a86c4899ae683f50f5a50b59add4e0 /vulkan/libvulkan/driver.cpp | |
| parent | 65344c8c20faf7544ad8323b3361108bd8d4a9d1 (diff) | |
| parent | 8a977261a012b0b02c062ac4a5a133f79ef74b62 (diff) | |
Merge "Enumerate initial version of VK_GOOGLE_display_timing"
Diffstat (limited to 'vulkan/libvulkan/driver.cpp')
| -rw-r--r-- | vulkan/libvulkan/driver.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vulkan/libvulkan/driver.cpp b/vulkan/libvulkan/driver.cpp index df2526cae0..46b29ca827 100644 --- a/vulkan/libvulkan/driver.cpp +++ b/vulkan/libvulkan/driver.cpp @@ -467,6 +467,10 @@ void CreateInfoWrapper::FilterExtension(const char* name) { name = VK_ANDROID_NATIVE_BUFFER_EXTENSION_NAME; ext_bit = ProcHook::ANDROID_native_buffer; break; + case ProcHook::GOOGLE_display_timing: + hook_extensions_.set(ext_bit); + // return now as these extensions do not require HAL support + return; case ProcHook::EXTENSION_UNKNOWN: // HAL's extensions break; @@ -725,10 +729,12 @@ VkResult EnumerateDeviceExtensionProperties( uint32_t* pPropertyCount, VkExtensionProperties* pProperties) { const InstanceData& data = GetData(physicalDevice); - static const std::array<VkExtensionProperties, 1> loader_extensions = {{ + static const std::array<VkExtensionProperties, 2> loader_extensions = {{ // WSI extensions {VK_KHR_INCREMENTAL_PRESENT_EXTENSION_NAME, VK_KHR_INCREMENTAL_PRESENT_SPEC_VERSION}, + {VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME, + VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION}, }}; // enumerate our extensions first |