From: Bas Nieuwenhuizen Date: Sat, 23 Dec 2017 10:43:49 +0000 (+0100) Subject: radv: Always use fragment resolve if dest uses DCC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a636208ace00e5ba7ddb331362b3e95fd4cea422;p=mesa.git radv: Always use fragment resolve if dest uses DCC. HW resolve does not support it either. Fixes: 2a04f5481df "radv/meta: select resolve paths" Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_meta_resolve.c b/src/amd/vulkan/radv_meta_resolve.c index e73a950ab7c..26489b7834f 100644 --- a/src/amd/vulkan/radv_meta_resolve.c +++ b/src/amd/vulkan/radv_meta_resolve.c @@ -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; } }