layers: Move image layer image-buffer-copy to CV
Moved the image layer validation for buffer-image copies to the
buffer validation module.
Change-Id: If8ff8aa183f88560dc5db9d59c92346ee47b01e9
diff --git a/layers/buffer_validation.h b/layers/buffer_validation.h
index 37ff54b..94815bc 100644
--- a/layers/buffer_validation.h
+++ b/layers/buffer_validation.h
@@ -23,11 +23,13 @@
#include "core_validation_types.h"
#include "core_validation_error_enums.h"
#include "vulkan/vk_layer.h"
+#include <limits.h>
#include <memory>
#include <unordered_map>
#include <vector>
#include <utility>
#include <algorithm>
+#include <bitset>
using core_validation::layer_data;
@@ -210,4 +212,10 @@
void PreCallRecordCmdFillBuffer(layer_data *device_data, GLOBAL_CB_NODE *cb_node, BUFFER_STATE *buffer_state);
+bool PreCallValidateCmdCopyImageToBuffer(layer_data *dev_data, VkImage srcImage, uint32_t regionCount,
+ const VkBufferImageCopy *pRegions, const char *func_name);
+
+bool PreCallValidateCmdCopyBufferToImage(layer_data *dev_data, VkImage dstImage, uint32_t regionCount,
+ const VkBufferImageCopy *pRegions, const char *func_name);
+
#endif // CORE_VALIDATION_BUFFER_VALIDATION_H_