From fb005c48ca6d7effceb10dfa39999e2a3674c64d Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Fri, 9 Jun 2017 16:35:43 -0600 Subject: layers: Move remaining Swapchain checks into CV Also refactored modified routines for pre/post call structure. Change-Id: I192e11c1d04effa8d2f3478c1341f6eedea7138a --- layers/core_validation.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'layers/core_validation.h') diff --git a/layers/core_validation.h b/layers/core_validation.h index fd1c8b4d..460dba37 100644 --- a/layers/core_validation.h +++ b/layers/core_validation.h @@ -140,13 +140,6 @@ class QUERY_POOL_NODE : public BASE_NODE { VkQueryPoolCreateInfo createInfo; }; -// Stuff from Device Limits Layer -enum CALL_STATE { - UNCALLED, // Function has not been called - QUERY_COUNT, // Function called once to query a count - QUERY_DETAILS, // Function called w/ a count to query details -}; - struct PHYSICAL_DEVICE_STATE { // Track the call state and array sizes for various query functions CALL_STATE vkGetPhysicalDeviceQueueFamilyPropertiesState = UNCALLED; @@ -156,6 +149,7 @@ struct PHYSICAL_DEVICE_STATE { CALL_STATE vkGetPhysicalDeviceSurfaceCapabilitiesKHRState = UNCALLED; CALL_STATE vkGetPhysicalDeviceSurfacePresentModesKHRState = UNCALLED; CALL_STATE vkGetPhysicalDeviceSurfaceFormatsKHRState = UNCALLED; + CALL_STATE vkGetPhysicalDeviceDisplayPlanePropertiesKHRState = UNCALLED; VkPhysicalDeviceFeatures features = {}; VkPhysicalDevice phys_device = VK_NULL_HANDLE; uint32_t queue_family_count = 0; @@ -163,6 +157,7 @@ struct PHYSICAL_DEVICE_STATE { VkSurfaceCapabilitiesKHR surfaceCapabilities = {}; std::vector present_modes; std::vector surface_formats; + uint32_t display_plane_property_count = 0; }; struct GpuQueue { -- cgit v1.2.3