From 5b000700d936170f12a4f1234d82f7e80187dbd0 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 12 Jun 2017 15:45:11 -0700 Subject: layers: Use correct tracking for display planes query --- layers/core_validation.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 439158be..65604970 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -10062,14 +10062,14 @@ static void PostCallRecordGetPhysicalDeviceDisplayPlanePropertiesKHR(instance_la auto physical_device_state = GetPhysicalDeviceState(instanceData, physicalDevice); if (*pPropertyCount) { - if (physical_device_state->vkGetPhysicalDeviceSurfaceFormatsKHRState < QUERY_COUNT) { - physical_device_state->vkGetPhysicalDeviceSurfaceFormatsKHRState = QUERY_COUNT; + if (physical_device_state->vkGetPhysicalDeviceDisplayPlanePropertiesKHRState < QUERY_COUNT) { + physical_device_state->vkGetPhysicalDeviceDisplayPlanePropertiesKHRState = QUERY_COUNT; } physical_device_state->display_plane_property_count = *pPropertyCount; } if (pProperties) { - if (physical_device_state->vkGetPhysicalDeviceSurfaceFormatsKHRState < QUERY_DETAILS) { - physical_device_state->vkGetPhysicalDeviceSurfaceFormatsKHRState = QUERY_DETAILS; + if (physical_device_state->vkGetPhysicalDeviceDisplayPlanePropertiesKHRState < QUERY_DETAILS) { + physical_device_state->vkGetPhysicalDeviceDisplayPlanePropertiesKHRState = QUERY_DETAILS; } } } @@ -10093,7 +10093,7 @@ static bool ValidateGetPhysicalDeviceDisplayPlanePropertiesKHRQuery(instance_lay const char *api_name) { bool skip = false; auto physical_device_state = GetPhysicalDeviceState(instance_data, physicalDevice); - if (physical_device_state->vkGetPhysicalDeviceSurfaceFormatsKHRState == UNCALLED) { + if (physical_device_state->vkGetPhysicalDeviceDisplayPlanePropertiesKHRState == UNCALLED) { skip |= log_msg( instance_data->report_data, VK_DEBUG_REPORT_WARNING_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT, HandleToUint64(physicalDevice), __LINE__, SWAPCHAIN_GET_SUPPORTED_DISPLAYS_WITHOUT_QUERY, "DL", -- cgit v1.2.3