radv: clear FMASK layers instead of the whole buffer on GFX8
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 24 Jun 2019 10:18:01 +0000 (12:18 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Jun 2019 14:36:25 +0000 (16:36 +0200)
commit476b907a3b40688e2ef2383804f9e1c91ec76a36
tree8f4c54f332ab514bee494d30928ad26da665377e
parenta5ba386b3ff349f3fd13379804b260f33c58d983
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 <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_surface.c
src/amd/common/ac_surface.h
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_image.c
src/amd/vulkan/radv_meta.h
src/amd/vulkan/radv_meta_clear.c
src/amd/vulkan/radv_meta_fmask_expand.c
src/amd/vulkan/radv_private.h