aboutsummaryrefslogtreecommitdiff
path: root/layers/buffer_validation.cpp
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2018-05-01 14:58:13 -0400
committerMark Lobodzinski <mark@lunarg.com>2018-05-02 12:35:15 -0400
commit1cebf5a1c84729e31f1a1c512134dba295a3ad75 (patch)
tree3b0a41578b764ce0fbb226ca66ea58c64a38de68 /layers/buffer_validation.cpp
parentf6759e8a40ac0217667e319c469932c12f4e1ebb (diff)
downloadusermoji-1cebf5a1c84729e31f1a1c512134dba295a3ad75.tar.xz
layers: Remove Fill Memory warnings
Implementation was incomplete, and had been reduced to producing non-specified warnings. Change-Id: I34a4bbf1f572f337b5f9f9316e9717f52645d8dc
Diffstat (limited to 'layers/buffer_validation.cpp')
-rw-r--r--layers/buffer_validation.cpp62
1 files changed, 0 insertions, 62 deletions
diff --git a/layers/buffer_validation.cpp b/layers/buffer_validation.cpp
index 101a9b48..330e187b 100644
--- a/layers/buffer_validation.cpp
+++ b/layers/buffer_validation.cpp
@@ -1078,11 +1078,6 @@ void PreCallRecordCmdClearImage(layer_data *dev_data, VkCommandBuffer commandBuf
auto image_state = GetImageState(dev_data, image);
if (cb_node && image_state) {
AddCommandBufferBindingImage(dev_data, cb_node, image_state);
- std::function<bool()> function = [=]() {
- SetImageMemoryValid(dev_data, image_state, true);
- return false;
- };
- cb_node->queue_submit_functions.push_back(function);
for (uint32_t i = 0; i < rangeCount; ++i) {
RecordClearImageLayout(dev_data, cb_node, image, pRanges[i], imageLayout);
}
@@ -2084,13 +2079,6 @@ void PreCallRecordCmdCopyImage(layer_data *device_data, GLOBAL_CB_NODE *cb_node,
// Update bindings between images and cmd buffer
AddCommandBufferBindingImage(device_data, cb_node, src_image_state);
AddCommandBufferBindingImage(device_data, cb_node, dst_image_state);
- std::function<bool()> function = [=]() { return ValidateImageMemoryIsValid(device_data, src_image_state, "vkCmdCopyImage()"); };
- cb_node->queue_submit_functions.push_back(function);
- function = [=]() {
- SetImageMemoryValid(device_data, dst_image_state, true);
- return false;
- };
- cb_node->queue_submit_functions.push_back(function);
}
// Returns true if sub_rect is entirely contained within rect
@@ -2302,16 +2290,6 @@ void PreCallRecordCmdResolveImage(layer_data *device_data, GLOBAL_CB_NODE *cb_no
// Update bindings between images and cmd buffer
AddCommandBufferBindingImage(device_data, cb_node, src_image_state);
AddCommandBufferBindingImage(device_data, cb_node, dst_image_state);
-
- std::function<bool()> function = [=]() {
- return ValidateImageMemoryIsValid(device_data, src_image_state, "vkCmdResolveImage()");
- };
- cb_node->queue_submit_functions.push_back(function);
- function = [=]() {
- SetImageMemoryValid(device_data, dst_image_state, true);
- return false;
- };
- cb_node->queue_submit_functions.push_back(function);
}
bool PreCallValidateCmdBlitImage(layer_data *device_data, GLOBAL_CB_NODE *cb_node, IMAGE_STATE *src_image_state,
@@ -2689,14 +2667,6 @@ void PreCallRecordCmdBlitImage(layer_data *device_data, GLOBAL_CB_NODE *cb_node,
// Update bindings between images and cmd buffer
AddCommandBufferBindingImage(device_data, cb_node, src_image_state);
AddCommandBufferBindingImage(device_data, cb_node, dst_image_state);
-
- std::function<bool()> function = [=]() { return ValidateImageMemoryIsValid(device_data, src_image_state, "vkCmdBlitImage()"); };
- cb_node->queue_submit_functions.push_back(function);
- function = [=]() {
- SetImageMemoryValid(device_data, dst_image_state, true);
- return false;
- };
- cb_node->queue_submit_functions.push_back(function);
}
// This validates that the initial layout specified in the command buffer for
@@ -3604,16 +3574,6 @@ void PreCallRecordCmdCopyBuffer(layer_data *device_data, GLOBAL_CB_NODE *cb_node
// Update bindings between buffers and cmd buffer
AddCommandBufferBindingBuffer(device_data, cb_node, src_buffer_state);
AddCommandBufferBindingBuffer(device_data, cb_node, dst_buffer_state);
-
- std::function<bool()> function = [=]() {
- return ValidateBufferMemoryIsValid(device_data, src_buffer_state, "vkCmdCopyBuffer()");
- };
- cb_node->queue_submit_functions.push_back(function);
- function = [=]() {
- SetBufferMemoryValid(device_data, dst_buffer_state, true);
- return false;
- };
- cb_node->queue_submit_functions.push_back(function);
}
static bool validateIdleBuffer(layer_data *device_data, VkBuffer buffer) {
@@ -3711,11 +3671,6 @@ bool PreCallValidateCmdFillBuffer(layer_data *device_data, GLOBAL_CB_NODE *cb_no
}
void PreCallRecordCmdFillBuffer(layer_data *device_data, GLOBAL_CB_NODE *cb_node, BUFFER_STATE *buffer_state) {
- std::function<bool()> function = [=]() {
- SetBufferMemoryValid(device_data, buffer_state, true);
- return false;
- };
- cb_node->queue_submit_functions.push_back(function);
// Update bindings between buffer and cmd buffer
AddCommandBufferBindingBuffer(device_data, cb_node, buffer_state);
}
@@ -4060,16 +4015,6 @@ void PreCallRecordCmdCopyImageToBuffer(layer_data *device_data, GLOBAL_CB_NODE *
// Update bindings between buffer/image and cmd buffer
AddCommandBufferBindingImage(device_data, cb_node, src_image_state);
AddCommandBufferBindingBuffer(device_data, cb_node, dst_buffer_state);
-
- std::function<bool()> function = [=]() {
- return ValidateImageMemoryIsValid(device_data, src_image_state, "vkCmdCopyImageToBuffer()");
- };
- cb_node->queue_submit_functions.push_back(function);
- function = [=]() {
- SetBufferMemoryValid(device_data, dst_buffer_state, true);
- return false;
- };
- cb_node->queue_submit_functions.push_back(function);
}
bool PreCallValidateCmdCopyBufferToImage(layer_data *device_data, VkImageLayout dstImageLayout, GLOBAL_CB_NODE *cb_node,
@@ -4123,13 +4068,6 @@ void PreCallRecordCmdCopyBufferToImage(layer_data *device_data, GLOBAL_CB_NODE *
}
AddCommandBufferBindingBuffer(device_data, cb_node, src_buffer_state);
AddCommandBufferBindingImage(device_data, cb_node, dst_image_state);
- std::function<bool()> function = [=]() {
- SetImageMemoryValid(device_data, dst_image_state, true);
- return false;
- };
- cb_node->queue_submit_functions.push_back(function);
- function = [=]() { return ValidateBufferMemoryIsValid(device_data, src_buffer_state, "vkCmdCopyBufferToImage()"); };
- cb_node->queue_submit_functions.push_back(function);
}
bool PreCallValidateGetImageSubresourceLayout(layer_data *device_data, VkImage image, const VkImageSubresource *pSubresource) {