diff options
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 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; }; /* |
