aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-06-24 17:04:54 +1200
committerChris Forbes <chrisforbes@google.com>2016-08-01 14:48:52 +1200
commitf475f09613747b4880c3e78552f8bc46793c4f60 (patch)
treef9d862a16455b3aec8e2a78c52e6a6ff86f958cc /layers/core_validation.cpp
parente10bf6b1865a6c6f432b8eb5a609f7bb7a523e93 (diff)
downloadusermoji-f475f09613747b4880c3e78552f8bc46793c4f60.tar.xz
layers: Add some TODOs for weird code that should go away
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index d6197a96..a8724576 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -4411,6 +4411,7 @@ static bool validateAndIncrementResources(layer_data *my_data, GLOBAL_CB_NODE *p
// Note: This function assumes that the global lock is held by the calling
// thread.
+// TODO: untangle this.
static bool cleanInFlightCmdBuffer(layer_data *my_data, VkCommandBuffer cmdBuffer) {
bool skip_call = false;
GLOBAL_CB_NODE *pCB = getCBNode(my_data, cmdBuffer);
@@ -4429,6 +4430,8 @@ static bool cleanInFlightCmdBuffer(layer_data *my_data, VkCommandBuffer cmdBuffe
}
return skip_call;
}
+
+// TODO: nuke this completely.
// Decrement cmd_buffer in_use and if it goes to 0 remove cmd_buffer from globalInFlightCmdBuffers
static inline void removeInFlightCmdBuffer(layer_data *dev_data, VkCommandBuffer cmd_buffer) {
// Pull it off of global list initially, but if we find it in any other queue list, add it back in