diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-12-19 10:57:29 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-12-19 14:31:33 -0700 |
| commit | 224b4de1b5cc7e8aa028bb235a7da4f8d40919b1 (patch) | |
| tree | e323d69436cf3e4717082c5211315c74eb8c637d | |
| parent | 60ef96932236812218d9d31437545a885170b869 (diff) | |
| download | usermoji-224b4de1b5cc7e8aa028bb235a7da4f8d40919b1.tar.xz | |
layers:Add validation flag for DestroyBuffer()
| -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 50ff7452..46ea89eb 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5734,6 +5734,8 @@ static bool PreCallValidateDestroyBuffer(layer_data *dev_data, VkBuffer buffer, VK_OBJECT *obj_struct) { *buffer_state = getBufferState(dev_data, buffer); *obj_struct = {reinterpret_cast<uint64_t &>(buffer), VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT}; + if (dev_data->instance_data->disabled.destroy_buffer) + return false; bool skip = false; if (*buffer_state) { skip |= validateIdleBuffer(dev_data, buffer); diff --git a/layers/core_validation.h b/layers/core_validation.h index aaf64013..f1185f3c 100644 --- a/layers/core_validation.h +++ b/layers/core_validation.h @@ -94,6 +94,7 @@ struct CHECK_DISABLED { bool destroy_semaphore; bool destroy_query_pool; bool get_query_pool_results; + bool destroy_buffer; }; /* |
