diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2016-10-14 12:13:33 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-10-14 14:52:36 -0600 |
| commit | 507ee4373127d0ff2d8ef03e7790ca6108b8ce50 (patch) | |
| tree | 8f4a6d19ea104dc1f41b93c7c19ceefdbf69386e /layers/image.cpp | |
| parent | 422c3da0e51a5b12ad730580ea6b953a97c60fae (diff) | |
| download | usermoji-507ee4373127d0ff2d8ef03e7790ca6108b8ce50.tar.xz | |
layers: Add Val IDs for a more cmdCopyImage checks
A couple more of the CmdCopyImage checks that have LVTs got added.
One of the remaining ones is not covered by valid usage but is a
'must' check, will add later.
Change-Id: Id9a1b7ad276c159149be4ef8c29d845baae29a35
Diffstat (limited to 'layers/image.cpp')
| -rw-r--r-- | layers/image.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/layers/image.cpp b/layers/image.cpp index 059a7d5a..b15733d1 100644 --- a/layers/image.cpp +++ b/layers/image.cpp @@ -791,9 +791,10 @@ bool cmd_copy_image_valid_usage(VkCommandBuffer commandBuffer, VkImage srcImage, std::stringstream ss; ss << "vkCmdCopyImage: number of layers in source and destination subresources for pRegions[" << i << "] do not match"; - skipCall |= log_msg(device_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, - VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, reinterpret_cast<uint64_t &>(commandBuffer), - __LINE__, IMAGE_INVALID_EXTENTS, "IMAGE", "%s", ss.str().c_str()); + skipCall |= + log_msg(device_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, + reinterpret_cast<uint64_t &>(commandBuffer), __LINE__, VALIDATION_ERROR_01198, "IMAGE", "%s. %s", + ss.str().c_str(), validation_error_map[VALIDATION_ERROR_01198]); } // For each region, the aspectMask member of srcSubresource and dstSubresource must match @@ -929,7 +930,8 @@ bool cmd_copy_image_valid_usage(VkCommandBuffer commandBuffer, VkImage srcImage, char const str[] = "vkCmdCopyImage called with unmatched source and dest image format sizes."; skipCall |= log_msg(device_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, - reinterpret_cast<uint64_t &>(commandBuffer), __LINE__, IMAGE_MISMATCHED_IMAGE_FORMAT, "IMAGE", str); + reinterpret_cast<uint64_t &>(commandBuffer), __LINE__, VALIDATION_ERROR_01184, "IMAGE", "%s. %s", str, + validation_error_map[VALIDATION_ERROR_01176]); } } } |
