diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-02-15 12:59:00 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-02-16 13:40:19 -0700 |
| commit | 3013625ffe951526673c5b6f3d20bedf3b62cf69 (patch) | |
| tree | f302684c62b395d14f2611febb8248658b3b12ea /layers/core_validation.cpp | |
| parent | 602054372e9bac5e4740900fb4b7b0a26e94804c (diff) | |
| download | usermoji-3013625ffe951526673c5b6f3d20bedf3b62cf69.tar.xz | |
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
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index c9580b14..ac3bf815 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -7834,6 +7834,7 @@ VKAPI_ATTR void VKAPI_CALL CmdCopyBufferToImage(VkCommandBuffer commandBuffer, V } else { skip_call |= ValidateCmdSubpassState(dev_data, cb_node, CMD_COPYBUFFERTOIMAGE); } + skip_call |= PreCallValidateCmdCopyBufferToImage(dev_data, dstImage, regionCount, pRegions, "vkCmdCopyBufferToImage()"); // Command pool must support graphics, compute, or transfer operations auto pPool = GetCommandPoolNode(dev_data, cb_node->createInfo.commandPool); @@ -7910,6 +7911,8 @@ VKAPI_ATTR void VKAPI_CALL CmdCopyImageToBuffer(VkCommandBuffer commandBuffer, V skip_call |= ValidateCmdSubpassState(dev_data, cb_node, CMD_COPYIMAGETOBUFFER); } + skip_call |= PreCallValidateCmdCopyImageToBuffer(dev_data, srcImage, regionCount, pRegions, "vkCmdCopyImageToBuffer()"); + // Command pool must support graphics, compute, or transfer operations auto pPool = GetCommandPoolNode(dev_data, cb_node->createInfo.commandPool); VkQueueFlags queue_flags = dev_data->phys_dev_properties.queue_family_properties[pPool->queueFamilyIndex].queueFlags; |
