mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-05 05:50:29 +01:00
radv: Always use fragment resolve if dest uses DCC.
HW resolve does not support it either. Fixes:2a04f5481d"radv/meta: select resolve paths" Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commita636208ace)
This commit is contained in:
parent
f8dca92cec
commit
8a39fdd7e6
1 changed files with 4 additions and 5 deletions
|
|
@ -300,11 +300,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue