diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-11-13 13:52:05 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-11-21 15:24:46 -0700 |
| commit | c81f6e170d5a7d39ea1bc633f0e6ba7ac6fcf0fd (patch) | |
| tree | 04fac832bb411d203ca1b8f4bc9cd6158fdb7658 /layers/core_validation.cpp | |
| parent | 4a9ab2415718bfb9eb72acf7304a20de8f0eb6a8 (diff) | |
| download | usermoji-c81f6e170d5a7d39ea1bc633f0e6ba7ac6fcf0fd.tar.xz | |
layers: Remove invalid query avaibility error check
This case in GetQueryPoolResults flagged errors for cases that are
valid.
Change-Id: I00a823992d200cd30988fde39ef679ea8ad8bce3
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
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, |
