diff options
author | Samuel Pitoiset <[email protected]> | 2018-04-06 16:00:08 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-04-09 11:21:14 +0200 |
commit | ed41e776d03d27d2874f9b02e00bbd1f2226528f (patch) | |
tree | d0df38cc2ed2acf670513affc106b9db6d527470 /src/amd/vulkan/radv_private.h | |
parent | e213f199079365ff03a7012b2b57f1d47843d507 (diff) |
radv: clean up radv_vi_dcc_enabled()
And rename to radv_dcc_enabled() to be consistent.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index f954d678740..97f4cf657d8 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1384,12 +1384,6 @@ bool radv_layout_dcc_compressed(const struct radv_image *image, VkImageLayout layout, unsigned queue_mask); -static inline bool -radv_vi_dcc_enabled(const struct radv_image *image, unsigned level) -{ - return image->surface.dcc_size && level < image->surface.num_dcc_levels; -} - /** * Return whether the image has CMASK metadata for color surfaces. */ @@ -1418,6 +1412,16 @@ radv_image_has_dcc(const struct radv_image *image) } /** + * Return whether DCC metadata is enabled for a level. + */ +static inline bool +radv_dcc_enabled(const struct radv_image *image, unsigned level) +{ + return radv_image_has_dcc(image) && + level < image->surface.num_dcc_levels; +} + +/** * Return whether the image has HTILE metadata for depth surfaces. */ static inline bool |