diff options
author | Dave Airlie <[email protected]> | 2018-01-23 16:07:50 +1000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-01-26 19:53:01 +0000 |
commit | 05e6e669bdf47d331f2481ff54a6c9b692047178 (patch) | |
tree | 9205bd0ea456aa14dad2084f558b96452c3a2dd8 /src/amd | |
parent | 62803e022eae6d3b173600c5849cf512c75e89e2 (diff) |
radv: don't use hw resolves for r16g16 norm formats.
radeonsi has a workaround for this, but it uses a R16A16 format,
which vulkan doesn't have, we could probably come up with a work
around but for now just avoid hw resolves.
Fixes:
dEQP-VK.renderpass.suballocation.multisample.r16g16_*norm*
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Fixes: 2a04f5481d (radv/meta: select resolve paths)
Signed-off-by: Dave Airlie <[email protected]>
(cherry picked from commit c727ea9370adc5362e00208b9f1481764b8ef215)
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_meta_resolve.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_meta_resolve.c b/src/amd/vulkan/radv_meta_resolve.c index bf33dfdfabd..1973c550050 100644 --- a/src/amd/vulkan/radv_meta_resolve.c +++ b/src/amd/vulkan/radv_meta_resolve.c @@ -353,7 +353,10 @@ static void radv_pick_resolve_method_images(struct radv_image *src_image, cmd_buffer->queue_family_index, cmd_buffer->queue_family_index); - if (vk_format_is_int(src_image->vk_format)) + if (src_image->vk_format == VK_FORMAT_R16G16_UNORM || + src_image->vk_format == VK_FORMAT_R16G16_SNORM) + *method = RESOLVE_COMPUTE; + else if (vk_format_is_int(src_image->vk_format)) *method = RESOLVE_COMPUTE; if (radv_layout_dcc_compressed(dest_image, dest_image_layout, queue_mask)) { |