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:
parent
5edbc6148d
commit
d7e1f492bc
|
@ -1948,7 +1948,7 @@ radv_image_has_fmask(const struct radv_image *image)
|
||||||
static inline bool
|
static inline bool
|
||||||
radv_image_has_dcc(const struct radv_image *image)
|
radv_image_has_dcc(const struct radv_image *image)
|
||||||
{
|
{
|
||||||
return image->planes[0].surface.dcc_size;
|
return image->planes[0].surface.dcc_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue