diff options
author | Chad Versace <[email protected]> | 2015-08-18 12:39:28 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-08-18 12:44:06 -0700 |
commit | bd0aab9a5892387daf0a2a4badc39d27dda73033 (patch) | |
tree | 7916ec364e9d2cc2701eb78e023133ff44d7dae9 | |
parent | b0875aa911073ebab7eb38ced07bf62ed4ac5d9b (diff) |
vk/meta: Fix dest format of vkCmdCopyImage
The source image's format was incorrectly used for both the source view
and destination view. For vkCmdCopyImage to correctly translate formats,
the destination view's format must be that of the destination image's.
-rw-r--r-- | src/vulkan/anv_meta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index bec8455c873..a433d132562 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -899,6 +899,7 @@ void anv_CmdCopyImage( { ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, cmdBuffer); ANV_FROM_HANDLE(anv_image, src_image, srcImage); + ANV_FROM_HANDLE(anv_image, dest_image, destImage); struct anv_saved_state saved_state; @@ -933,7 +934,7 @@ void anv_CmdCopyImage( &(VkAttachmentViewCreateInfo) { .sType = VK_STRUCTURE_TYPE_ATTACHMENT_VIEW_CREATE_INFO, .image = destImage, - .format = src_image->format->vk_format, + .format = dest_image->format->vk_format, .mipLevel = pRegions[r].destSubresource.mipLevel, .baseArraySlice = pRegions[r].destSubresource.arraySlice, .arraySize = 1, |