diff options
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index cf986e2e..9ff35d89 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -7816,7 +7816,8 @@ VKAPI_ATTR void VKAPI_CALL CmdCopyImage(VkCommandBuffer commandBuffer, VkImage s skip = PreCallValidateCmdCopyImage(device_data, cb_node, src_image_state, dst_image_state, regionCount, pRegions, srcImageLayout, dstImageLayout); if (!skip) { - PreCallRecordCmdCopyImage(device_data, cb_node, src_image_state, dst_image_state); + PreCallRecordCmdCopyImage(device_data, cb_node, src_image_state, dst_image_state, regionCount, pRegions, srcImageLayout, + dstImageLayout); lock.unlock(); device_data->dispatch_table.CmdCopyImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions); @@ -7880,7 +7881,8 @@ VKAPI_ATTR void VKAPI_CALL CmdCopyBufferToImage(VkCommandBuffer commandBuffer, V // TODO: report VU01244 here, or put in object tracker? } if (!skip) { - PreCallRecordCmdCopyBufferToImage(device_data, cb_node, src_buffer_state, dst_image_state); + PreCallRecordCmdCopyBufferToImage(device_data, cb_node, src_buffer_state, dst_image_state, regionCount, pRegions, + dstImageLayout); lock.unlock(); device_data->dispatch_table.CmdCopyBufferToImage(commandBuffer, srcBuffer, dstImage, dstImageLayout, regionCount, pRegions); } @@ -7904,7 +7906,8 @@ VKAPI_ATTR void VKAPI_CALL CmdCopyImageToBuffer(VkCommandBuffer commandBuffer, V // TODO: report VU01262 here, or put in object tracker? } if (!skip) { - PreCallRecordCmdCopyImageToBuffer(device_data, cb_node, src_image_state, dst_buffer_state); + PreCallRecordCmdCopyImageToBuffer(device_data, cb_node, src_image_state, dst_buffer_state, regionCount, pRegions, + srcImageLayout); lock.unlock(); device_data->dispatch_table.CmdCopyImageToBuffer(commandBuffer, srcImage, srcImageLayout, dstBuffer, regionCount, pRegions); } |
