diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-12-19 10:20:43 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-12-19 14:31:33 -0700 |
| commit | 9587868f634ad788a06acc64b1bcbbedc845e1e2 (patch) | |
| tree | 8a9de15d5727cc6a415b12d85fb946f55ac0bc8c /layers | |
| parent | c52e8b86286f942fedd22581ef5677be101b0204 (diff) | |
| download | usermoji-9587868f634ad788a06acc64b1bcbbedc845e1e2.tar.xz | |
layers:Add GetQueryPoolResults() validation flag
Diffstat (limited to 'layers')
| -rw-r--r-- | layers/core_validation.cpp | 2 | ||||
| -rw-r--r-- | layers/core_validation.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 5ada6e1d..714ff3c5 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5473,6 +5473,8 @@ static bool PreCallValidateGetQueryPoolResults(layer_data *dev_data, VkQueryPool (*queries_in_flight)[query_state_pair.first].push_back(cmd_buffer); } } + if (dev_data->instance_data->disabled.get_query_pool_results) + return false; bool skip = false; for (uint32_t i = 0; i < query_count; ++i) { QueryObject query = {query_pool, first_query + i}; diff --git a/layers/core_validation.h b/layers/core_validation.h index 19720226..aaf64013 100644 --- a/layers/core_validation.h +++ b/layers/core_validation.h @@ -93,6 +93,7 @@ struct CHECK_DISABLED { bool destroy_fence; bool destroy_semaphore; bool destroy_query_pool; + bool get_query_pool_results; }; /* |
