radv/resolve: do fmask decompress on all layers.
authorDave Airlie <airlied@redhat.com>
Fri, 11 May 2018 04:53:28 +0000 (14:53 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 13 May 2018 22:56:47 +0000 (08:56 +1000)
For a multi-layer subpass resolve we want to make sure we flush all
the layers.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: <mesa-stable@lists.freedesktop.org>
src/amd/vulkan/radv_meta_resolve.c

index f3e088b10c4869c4dd29486170eacd33b22601be..75916713c0078999a9cc1b4102fbc672a4da029b 100644 (file)
@@ -695,7 +695,7 @@ radv_decompress_resolve_subpass_src(struct radv_cmd_buffer *cmd_buffer)
                VkImageResolve region = {};
                region.srcSubresource.baseArrayLayer = 0;
                region.srcSubresource.mipLevel = 0;
-               region.srcSubresource.layerCount = 1;
+               region.srcSubresource.layerCount = src_image->info.array_size;
 
                radv_decompress_resolve_src(cmd_buffer, src_image,
                                            src_att.layout, 1, &region);