radv: Always use fragment resolve if dest uses DCC.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 23 Dec 2017 10:43:49 +0000 (11:43 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 27 Dec 2017 23:30:47 +0000 (00:30 +0100)
HW resolve does not support it either.

Fixes: 2a04f5481df "radv/meta: select resolve paths"
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_resolve.c

index e73a950ab7cf7094f8d14b166271d4fe26270cd5..26489b7834f5d2de82dff2dce56e8ef5c500755c 100644 (file)
@@ -318,11 +318,10 @@ static void radv_pick_resolve_method_images(struct radv_image *src_image,
                                            enum radv_resolve_method *method)
 
 {
-       if (dest_image->surface.micro_tile_mode != src_image->surface.micro_tile_mode) {
-               if (dest_image->surface.num_dcc_levels > 0)
-                       *method = RESOLVE_FRAGMENT;
-               else
-                       *method = RESOLVE_COMPUTE;
+       if (dest_image->surface.num_dcc_levels > 0) {
+               *method = RESOLVE_FRAGMENT;
+       } else if (dest_image->surface.micro_tile_mode != src_image->surface.micro_tile_mode) {
+               *method = RESOLVE_COMPUTE;
        }
 }