summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-06-10 17:45:31 +0200
committerSamuel Pitoiset <[email protected]>2019-06-11 08:06:35 +0200
commit4efbd963ec6cd92c2a8455087e20cdf11016499f (patch)
treedbfa1a26a6b076e1556b4135b20db7a3d8c368f6
parentc31a07fa85e8b1e6cb4859bcd9a4e7a71b102ca4 (diff)
radv: initialize the aspect mask when decompressing resolve source images
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-By: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/amd/vulkan/radv_meta_resolve.c1
1 files changed, 1 insertions, 0 deletions
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;