mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
radv: fix image_has_{cmask,fmask}() helpers
The driver should now rely on cmask_offset because CMASK can be disabled by the driver for some reasons (eg. mipmaps). Apply the same change for FMASK, although it should be useless. Fixes:ad1bc8621d("radv: remove radv_get_image_fmask_info()") Fixes:10d08da52c("radv/gfx10: add missing dcc_tile_swizzle tweak") Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
ad1bc8621d
commit
e8110e51c6
1 changed files with 2 additions and 2 deletions
|
|
@ -1633,7 +1633,7 @@ bool radv_layout_dcc_compressed(const struct radv_image *image,
|
|||
static inline bool
|
||||
radv_image_has_cmask(const struct radv_image *image)
|
||||
{
|
||||
return image->planes[0].surface.cmask_size;
|
||||
return image->cmask_offset;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1642,7 +1642,7 @@ radv_image_has_cmask(const struct radv_image *image)
|
|||
static inline bool
|
||||
radv_image_has_fmask(const struct radv_image *image)
|
||||
{
|
||||
return image->planes[0].surface.fmask_size;
|
||||
return image->fmask_offset;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue