diff options
author | Samuel Pitoiset <[email protected]> | 2019-06-24 18:40:29 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-06-25 16:36:28 +0200 |
commit | 34bef8a0d70211b073778d7a93d5c97d7f272558 (patch) | |
tree | 98e535978d5cb543032450ca0b32f132eadbe9ef /src/amd/vulkan/radv_meta.h | |
parent | 476b907a3b40688e2ef2383804f9e1c91ec76a36 (diff) |
radv: clear CMASK layers instead of the whole buffer on GFX8
This reduces the size of fill operations needed to clear CMASK
for layered color textures.
GFX9 unsupported for now.
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_meta.h b/src/amd/vulkan/radv_meta.h index 30981f00790..c3d37bb07d2 100644 --- a/src/amd/vulkan/radv_meta.h +++ b/src/amd/vulkan/radv_meta.h @@ -212,7 +212,8 @@ void radv_decompress_resolve_src(struct radv_cmd_buffer *cmd_buffer, const VkImageResolve *regions); uint32_t radv_clear_cmask(struct radv_cmd_buffer *cmd_buffer, - struct radv_image *image, uint32_t value); + struct radv_image *image, + const VkImageSubresourceRange *range, uint32_t value); uint32_t radv_clear_fmask(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, const VkImageSubresourceRange *range, uint32_t value); |