radv: flush CB before and after FMASK_DECOMPRESS or DCC_DECOMPRESS
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 6 May 2020 09:42:43 +0000 (11:42 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 27 Oct 2020 14:13:50 +0000 (14:13 +0000)
commitee1d30ab8a9e53bca2a146e175a8aa6a28ec02bd
tree5b131da5380290729f52062f68f0e1819dff8e36
parent3fee91d2e7efb9ec21965a734b4e338bd7965fc9
radv: flush CB before and after FMASK_DECOMPRESS or DCC_DECOMPRESS

According to RadeonSI and AMDVLK, it seems required to flush CB
before and after FMASK_DECOMPRESS or DCC_DECOMPRESS.

This shouldn't much affect performance because the driver already
flushes CB after these operations (including FCE too).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4913>
src/amd/vulkan/radv_meta_fast_clear.c