summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-08-02 13:55:01 +0200
committerSamuel Pitoiset <[email protected]>2019-08-02 14:00:50 +0200
commite8110e51c6f5ca369100b4771eaaa4e5cbe9e0df (patch)
tree9cdf5d0cca8f69da23dc74edd0cd4b725d864a3f
parentad1bc8621df353f638e8bb34cd523f37fd5dfcfe (diff)
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: ad1bc8621df ("radv: remove radv_get_image_fmask_info()") Fixes: 10d08da52c6 ("radv/gfx10: add missing dcc_tile_swizzle tweak") Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/amd/vulkan/radv_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index 49d3c78db98..ee0761e69fe 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -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;
}
/**