summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_meta.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-05-22 15:38:47 +0200
committerSamuel Pitoiset <[email protected]>2019-05-27 13:52:34 +0200
commit9af15986b0d9ffcb69fcced33e59a61a8c54dfdd (patch)
treeade19653a3641da993e5b47b758f05c34f46495c /src/amd/vulkan/radv_meta.h
parent13b38ca1e4341f5f16ae3ee9856552db12fda4cf (diff)
radv: add radv_clear_htile() helper
This helper will be useful for clearing HTILE after some depth/stencil resolves. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta.h')
-rw-r--r--src/amd/vulkan/radv_meta.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta.h b/src/amd/vulkan/radv_meta.h
index 5e0afd11a00..0bd75d6c207 100644
--- a/src/amd/vulkan/radv_meta.h
+++ b/src/amd/vulkan/radv_meta.h
@@ -211,6 +211,9 @@ uint32_t radv_clear_fmask(struct radv_cmd_buffer *cmd_buffer,
struct radv_image *image, uint32_t value);
uint32_t radv_clear_dcc(struct radv_cmd_buffer *cmd_buffer,
struct radv_image *image, uint32_t value);
+uint32_t radv_clear_htile(struct radv_cmd_buffer *cmd_buffer,
+ struct radv_image *image,
+ const VkImageSubresourceRange *range, uint32_t value);
/* common nir builder helpers */
#include "nir/nir_builder.h"