layer: Migrate display timing impl to EnumerateDeviceExtensionProperties

This commit is contained in:
Joshua Ashton 2023-11-08 16:58:53 +00:00
parent bbf337de7b
commit 7eb99803de
2 changed files with 3 additions and 11 deletions

View file

@ -514,9 +514,11 @@ namespace GamescopeWSILayer {
const char* pLayerName,
uint32_t* pPropertyCount,
VkExtensionProperties* pProperties) {
static constexpr std::array<VkExtensionProperties, 1> s_LayerExposedExts = {{
static constexpr std::array<VkExtensionProperties, 2> s_LayerExposedExts = {{
{ VK_EXT_HDR_METADATA_EXTENSION_NAME,
VK_EXT_HDR_METADATA_SPEC_VERSION },
{ VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME,
VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION },
}};
if (pLayerName) {

View file

@ -10,16 +10,6 @@
"functions": {
"vkNegotiateLoaderLayerInterfaceVersion": "vkNegotiateLoaderLayerInterfaceVersion"
},
"device_extensions": [
{
"name" : "VK_GOOGLE_display_timing",
"spec_version" : "1",
"entrypoints": [
"vkGetPastPresentationTimingGOOGLE",
"vkGetRefreshCycleDurationGOOGLE"
]
}
],
"enable_environment": {
"ENABLE_GAMESCOPE_WSI": "1"
},