diff options
author | Samuel Pitoiset <[email protected]> | 2019-06-24 12:18:01 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-06-25 16:36:25 +0200 |
commit | 476b907a3b40688e2ef2383804f9e1c91ec76a36 (patch) | |
tree | 8f4c54f332ab514bee494d30928ad26da665377e /src/amd/vulkan/radv_meta.h | |
parent | a5ba386b3ff349f3fd13379804b260f33c58d983 (diff) |
radv: clear FMASK layers instead of the whole buffer on GFX8
This reduces the size of fill operations needed to clear FMASK
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 5880064ff30..30981f00790 100644 --- a/src/amd/vulkan/radv_meta.h +++ b/src/amd/vulkan/radv_meta.h @@ -214,7 +214,8 @@ void radv_decompress_resolve_src(struct radv_cmd_buffer *cmd_buffer, uint32_t radv_clear_cmask(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, uint32_t value); uint32_t radv_clear_fmask(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_dcc(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, const VkImageSubresourceRange *range, uint32_t value); |