aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2016-12-12 08:33:13 -0700
committerMark Lobodzinski <mark@lunarg.com>2016-12-13 10:39:45 -0700
commitd14b7bb4da583ce4d535ddcccb6cbed88c766ee9 (patch)
tree1161b697d64df6076fee5b59c2e20f77488e0150
parent163f4f5408bf1fb61153dec85f826d12a40ccb6d (diff)
downloadusermoji-d14b7bb4da583ce4d535ddcccb6cbed88c766ee9.tar.xz
layers: Add some val/state-update todos
Couple of routines combine state updates and validation, adding a note for future work. Change-Id: I417025bbcabfd3e80ccefe166bc6ea3497222753
-rw-r--r--layers/core_validation.cpp2
1 files changed, 2 insertions, 0 deletions
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);