diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2016-11-22 09:17:10 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-11-23 07:56:43 -0700 |
| commit | 3ecc2e66c6a1f03b0356da792eaa0f339e09f09f (patch) | |
| tree | 64464e2c689df394507f42cee7585c0f49a49976 | |
| parent | 9861cf9ff508a23860ce0abaebf9f76867c12d94 (diff) | |
| download | usermoji-3ecc2e66c6a1f03b0356da792eaa0f339e09f09f.tar.xz | |
layers: Clarify BufferImageCopy validation name
This routine was used in both ImageToBuffer and BufferToImage but
the name was misleading.
Change-Id: I8ff99cff1757dbaa888cf543451e6a3a4872b003
| -rw-r--r-- | layers/image.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layers/image.cpp b/layers/image.cpp index f3bfacdc..68c29cc9 100644 --- a/layers/image.cpp +++ b/layers/image.cpp @@ -841,7 +841,7 @@ VKAPI_ATTR void VKAPI_CALL CmdClearAttachments(VkCommandBuffer commandBuffer, ui } } -static bool ValidateBufferToImageData(layer_data *dev_data, uint32_t regionCount, const VkBufferImageCopy *pRegions, VkImage image, +static bool ValidateBufferImageCopyData(layer_data *dev_data, uint32_t regionCount, const VkBufferImageCopy *pRegions, VkImage image, const char *function) { bool skip = false; @@ -895,7 +895,7 @@ VKAPI_ATTR void VKAPI_CALL CmdCopyImageToBuffer(VkCommandBuffer commandBuffer, V bool skip_call = false; layer_data *device_data = get_my_data_ptr(get_dispatch_key(commandBuffer), layer_data_map); - skip_call |= ValidateBufferToImageData(device_data, regionCount, pRegions, srcImage, "vkCmdCopyImageToBuffer"); + skip_call |= ValidateBufferImageCopyData(device_data, regionCount, pRegions, srcImage, "vkCmdCopyImageToBuffer"); // For each region, the number of layers in the image subresource should not be zero // Image aspect must be ONE OF color, depth, stencil @@ -930,7 +930,7 @@ VKAPI_ATTR void VKAPI_CALL CmdCopyBufferToImage(VkCommandBuffer commandBuffer, V bool skip_call = false; layer_data *device_data = get_my_data_ptr(get_dispatch_key(commandBuffer), layer_data_map); - skip_call |= ValidateBufferToImageData(device_data, regionCount, pRegions, dstImage, "vkCmdCopyBufferToImage"); + skip_call |= ValidateBufferImageCopyData(device_data, regionCount, pRegions, dstImage, "vkCmdCopyBufferToImage"); // For each region, the number of layers in the image subresource should not be zero // Image aspect must be ONE OF color, depth, stencil |
