From c81f6e170d5a7d39ea1bc633f0e6ba7ac6fcf0fd Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 13 Nov 2017 13:52:05 -0700 Subject: layers: Remove invalid query avaibility error check This case in GetQueryPoolResults flagged errors for cases that are valid. Change-Id: I00a823992d200cd30988fde39ef679ea8ad8bce3 --- layers/core_validation.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 2940f6d5..c8eaf05d 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -3419,19 +3419,6 @@ static bool PreCallValidateGetQueryPoolResults(layer_data *dev_data, VkQueryPool HandleToUint64(query_pool), first_query + i); } } - } else { // Unavailable and in flight - // TODO : Can there be the same query in use by multiple command buffers in flight? - bool make_available = false; - for (auto cmd_buffer : qif_pair->second) { - auto cb = GetCBNode(dev_data, cmd_buffer); - make_available |= cb->queryToStateMap[query]; - } - if (!(((flags & VK_QUERY_RESULT_PARTIAL_BIT) || (flags & VK_QUERY_RESULT_WAIT_BIT)) && make_available)) { - skip |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, - VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT, 0, __LINE__, DRAWSTATE_INVALID_QUERY, "DS", - "Cannot get query results on queryPool 0x%" PRIx64 " with index %d which is unavailable.", - HandleToUint64(query_pool), first_query + i); - } } } else if (!query_state_pair->second) { // Unavailable and Not in flight skip |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT, 0, -- cgit v1.2.3