From f475f09613747b4880c3e78552f8bc46793c4f60 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 24 Jun 2016 17:04:54 +1200 Subject: layers: Add some TODOs for weird code that should go away Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'layers/core_validation.cpp') 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 -- cgit v1.2.3