radv: Disable displayable DCC for GFX8 properly.

On scanout the GFX8 ac_surface doesn't clear the size but only
doesn't allocate space and hence dcc_offset is 0. This is the same
as radeonsi.

Fixes: 7acb30de8a ("radv: Enable displayable DCC.")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4346
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9221>
This commit is contained in:
Bas Nieuwenhuizen 2021-02-23 17:27:53 +01:00 committed by Marge Bot
parent 5edbc6148d
commit d7e1f492bc
1 changed files with 1 additions and 1 deletions

View File

@ -1948,7 +1948,7 @@ radv_image_has_fmask(const struct radv_image *image)
static inline bool
radv_image_has_dcc(const struct radv_image *image)
{
return image->planes[0].surface.dcc_size;
return image->planes[0].surface.dcc_offset;
}
/**