From 4efbd963ec6cd92c2a8455087e20cdf11016499f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 10 Jun 2019 17:45:31 +0200 Subject: [PATCH] radv: initialize the aspect mask when decompressing resolve source images Signed-off-by: Samuel Pitoiset Reviewed-By: Bas Nieuwenhuizen --- 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 817182e..0a7affb 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.7.4