[Mesa-dev] [PATCH 3/5] radv: initialize the aspect mask when decompressing resolve source images

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Jun 10 15:45:31 UTC 2019


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_meta_resolve.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/radv_meta_resolve.c b/src/amd/vulkan/radv_meta_resolve.c
index 817182e17d9..0a7affb2f11 100644
--- a/src/amd/vulkan/radv_meta_resolve.c
+++ b/src/amd/vulkan/radv_meta_resolve.c
@@ -719,6 +719,7 @@ radv_decompress_resolve_subpass_src(struct radv_cmd_buffer *cmd_buffer)
 			fb->attachments[src_att.attachment].attachment->image;
 
 		VkImageResolve region = {};
+		region.srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
 		region.srcSubresource.baseArrayLayer = 0;
 		region.srcSubresource.mipLevel = 0;
 		region.srcSubresource.layerCount = src_image->info.array_size;
-- 
2.22.0



More information about the mesa-dev mailing list