summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2018-05-11 14:53:28 +1000
committerDave Airlie <[email protected]>2018-05-14 08:56:47 +1000
commitb16fc6cda11576a4dd6c8d95f7bee94121c4b8e7 (patch)
treed03bff134121a74294bcc115ce51cc8c74557f5b /src/amd
parent8f6cbb8c7d5f1b05ffef53de4076a0a187c2f332 (diff)
radv/resolve: do fmask decompress on all layers.
For a multi-layer subpass resolve we want to make sure we flush all the layers. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Cc: <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_meta_resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_meta_resolve.c b/src/amd/vulkan/radv_meta_resolve.c
index f3e088b10c4..75916713c00 100644
--- a/src/amd/vulkan/radv_meta_resolve.c
+++ b/src/amd/vulkan/radv_meta_resolve.c
@@ -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);