diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-12-15 14:35:21 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-12-19 14:31:33 -0700 |
| commit | 903b033d796f9c246d01b83b00943731381c520f (patch) | |
| tree | 199952bd5d02d622c8774aa46fde1087bfcc28ee | |
| parent | eb8cb5d13fce5a68272c9ab27954e08b39acb795 (diff) | |
| download | usermoji-903b033d796f9c246d01b83b00943731381c520f.tar.xz | |
layers:Add validation flag for DestroyFence()
| -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 c6505ba7..dbd5fec9 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5340,6 +5340,8 @@ VKAPI_ATTR VkResult VKAPI_CALL DeviceWaitIdle(VkDevice device) { static bool PreCallValidateDestroyFence(layer_data *dev_data, VkFence fence, FENCE_NODE **fence_node, VK_OBJECT *obj_struct) { *fence_node = getFenceNode(dev_data, fence); *obj_struct = {reinterpret_cast<uint64_t &>(fence), VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT}; + if (dev_data->instance_data->disabled.destroy_fence) + return false; bool skip = false; if (*fence_node) { if ((*fence_node)->state == FENCE_INFLIGHT) { diff --git a/layers/core_validation.h b/layers/core_validation.h index d35ba4c7..a3657463 100644 --- a/layers/core_validation.h +++ b/layers/core_validation.h @@ -90,6 +90,7 @@ struct CHECK_DISABLED { bool get_fence_state; bool queue_wait_idle; bool device_wait_idle; + bool destroy_fence; }; /* |
