Commit ffae3589 authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen Committed by Marge Bot

radv: Rely on ac_surface for avoiding cmask for linear images.

Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <!5194>
parent b5488a86
......@@ -505,7 +505,7 @@ static void ac_compute_cmask(const struct radeon_info *info,
unsigned num_pipes = info->num_tile_pipes;
unsigned cl_width, cl_height;
if (surf->flags & RADEON_SURF_Z_OR_SBUFFER ||
if (surf->flags & RADEON_SURF_Z_OR_SBUFFER || surf->is_linear ||
(config->info.samples >= 2 && !surf->fmask_size))
return;
......
......@@ -1307,8 +1307,7 @@ radv_image_can_enable_cmask(struct radv_image *image)
return radv_image_can_enable_dcc_or_cmask(image) &&
image->info.levels == 1 &&
image->info.depth == 1 &&
!image->planes[0].surface.is_linear;
image->info.depth == 1;
}
static inline bool
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment