summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2018-05-11 14:55:29 +1000
committerDylan Baker <[email protected]>2018-05-18 16:47:02 -0700
commit0ea288d58401e52179d4339e3d25ff70dd7528be (patch)
treebd9628d72f31858a758fbb6dfb39fcbadc493959
parent73b78286830070b133484005576b902061ec63ce (diff)
radv: use compute path for multi-layer images.
I don't think the hw resolve path can't handle multi-layer images. This fixes all the: dEQP-VK.renderpass.multisample_resolve.layers_* tests on my VI card. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Cc: <[email protected]> (cherry picked from commit 5978d54a09e6ad151c0bd365de0e2c82bbf493d1)
-rw-r--r--src/amd/vulkan/radv_meta_resolve.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta_resolve.c b/src/amd/vulkan/radv_meta_resolve.c
index 75916713c00..d4d3552f317 100644
--- a/src/amd/vulkan/radv_meta_resolve.c
+++ b/src/amd/vulkan/radv_meta_resolve.c
@@ -358,6 +358,8 @@ static void radv_pick_resolve_method_images(struct radv_image *src_image,
*method = RESOLVE_COMPUTE;
else if (vk_format_is_int(src_image->vk_format))
*method = RESOLVE_COMPUTE;
+ else if (src_image->info.array_size > 1)
+ *method = RESOLVE_COMPUTE;
if (radv_layout_dcc_compressed(dest_image, dest_image_layout, queue_mask)) {
*method = RESOLVE_FRAGMENT;