diff options
| author | Chris Forbes <chrisforbes@google.com> | 2017-06-12 15:45:11 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-06-13 07:43:05 -0600 |
| commit | 5b000700d936170f12a4f1234d82f7e80187dbd0 (patch) | |
| tree | 635be8a9aadf076169caf02bfe73621bfbd86f9a /layers/core_validation.cpp | |
| parent | 3abde2011c84f376dd26c52bc986aa5d9ac551ee (diff) | |
| download | usermoji-5b000700d936170f12a4f1234d82f7e80187dbd0.tar.xz | |
layers: Use correct tracking for display planes query
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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", |
