From d14b7bb4da583ce4d535ddcccb6cbed88c766ee9 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 12 Dec 2016 08:33:13 -0700 Subject: layers: Add some val/state-update todos Couple of routines combine state updates and validation, adding a note for future work. Change-Id: I417025bbcabfd3e80ccefe166bc6ea3497222753 --- layers/core_validation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 906a7b18..43c767d3 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -3792,6 +3792,7 @@ static bool checkGraphicsOrComputeBit(const layer_data *my_data, VkQueueFlags fl // Add specified CMD to the CmdBuffer in given pCB, flagging errors if CB is not // in the recording state or if there's an issue with the Cmd ordering +// TODO: Tease apart validation and CB state updates static bool addCmd(layer_data *my_data, GLOBAL_CB_NODE *pCB, const CMD_TYPE cmd, const char *caller_name) { bool skip_call = false; auto pPool = getCommandPoolNode(my_data, pCB->createInfo.commandPool); @@ -9022,6 +9023,7 @@ CmdResetEvent(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags dev_data->dispatch_table.CmdResetEvent(commandBuffer, event, stageMask); } +// TODO: Separate validation and layout state updates static bool TransitionImageLayouts(VkCommandBuffer cmdBuffer, uint32_t memBarrierCount, const VkImageMemoryBarrier *pImgMemBarriers) { layer_data *dev_data = get_my_data_ptr(get_dispatch_key(cmdBuffer), layer_data_map); -- cgit v1.2.3