From 5629d0b2c928c27ff71b6827c1fb3ef6e1264ce1 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 3 Nov 2016 10:18:18 +1300 Subject: [PATCH] layers: Add tracking for VK_KHR_display extension in PV Signed-off-by: Chris Forbes --- layers/parameter_validation.cpp | 3 +++ layers/parameter_validation_utils.h | 1 + 2 files changed, 4 insertions(+) diff --git a/layers/parameter_validation.cpp b/layers/parameter_validation.cpp index c5cfbba..0440b68 100644 --- a/layers/parameter_validation.cpp +++ b/layers/parameter_validation.cpp @@ -1604,6 +1604,9 @@ static void CheckInstanceRegisterExtensions(const VkInstanceCreateInfo *pCreateI instance_extension_map[dispatch_table].win32_enabled = true; } #endif + if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_DISPLAY_EXTENSION_NAME) == 0) { + instance_extension_map[dispatch_table].display_enabled = true; + } } } diff --git a/layers/parameter_validation_utils.h b/layers/parameter_validation_utils.h index a3aa113..9e99964 100644 --- a/layers/parameter_validation_utils.h +++ b/layers/parameter_validation_utils.h @@ -80,6 +80,7 @@ struct instance_extension_enables { bool mir_enabled; bool android_enabled; bool win32_enabled; + bool display_enabled; }; // String returned by string_VkStructureType for an unrecognized type. -- 2.7.4