summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-10-03 10:48:42 +0200
committerSamuel Pitoiset <[email protected]>2017-10-06 09:49:05 +0200
commit507df359394a914040ebebe72901001f99c104df (patch)
tree38972ed41dd66583518da0eef0ad3b9cea766479 /src/amd/vulkan/radv_private.h
parent03516382844c4513a68b8e0b6ef4a0040385906a (diff)
radv: add radv_htile_enabled() helper
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index c2d78a7e2c7..2405d983394 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -1253,6 +1253,12 @@ 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;
+}
+
unsigned radv_image_queue_family_mask(const struct radv_image *image, uint32_t family, uint32_t queue_family);
static inline uint32_t