diff options
author | Samuel Pitoiset <[email protected]> | 2018-04-06 15:57:48 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-04-09 11:21:12 +0200 |
commit | e213f199079365ff03a7012b2b57f1d47843d507 (patch) | |
tree | 7b7e7161beb9f2cd2f77dfa5847bca7bbd8008c6 /src/amd/vulkan/radv_private.h | |
parent | 0fc9113ac593e396d3b103bebb2713aac9d072ff (diff) |
radv: clean up radv_htile_enabled()
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 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index b4952b56e1a..f954d678740 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1390,12 +1390,6 @@ radv_vi_dcc_enabled(const struct radv_image *image, unsigned level) return image->surface.dcc_size && level < image->surface.num_dcc_levels; } -static inline bool -radv_htile_enabled(const struct radv_image *image, unsigned level) -{ - return image->surface.htile_size && level == 0; -} - /** * Return whether the image has CMASK metadata for color surfaces. */ @@ -1432,6 +1426,15 @@ radv_image_has_htile(const struct radv_image *image) return image->surface.htile_size; } +/** + * Return whether HTILE metadata is enabled for a level. + */ +static inline bool +radv_htile_enabled(const struct radv_image *image, unsigned level) +{ + return radv_image_has_htile(image) && level == 0; +} + unsigned radv_image_queue_family_mask(const struct radv_image *image, uint32_t family, uint32_t queue_family); static inline uint32_t |