From: Chris Forbes Date: Wed, 2 Nov 2016 21:18:18 +0000 (+1300) Subject: layers: Add tracking for VK_KHR_display extension in PV X-Git-Tag: upstream/1.1.92~2200 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5629d0b2c928c27ff71b6827c1fb3ef6e1264ce1;p=platform%2Fupstream%2FVulkan-Tools.git layers: Add tracking for VK_KHR_display extension in PV Signed-off-by: Chris Forbes --- 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.