radv: only flush CB meta in pipeline image barriers when needed
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 5 Jul 2018 10:54:18 +0000 (12:54 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 5 Jul 2018 15:20:16 +0000 (17:20 +0200)
commitf2a310849ee2ae2ad46b6fca9723bf5f9e425c52
treef3c4796facf01a24aa0fc54743ecfd1229aaaffc
parent17bb4c2cf5944011041aa6062a697e248408f54c
radv: only flush CB meta in pipeline image barriers when needed

If the given image doesn't enable CMASK, FMASK or DCC that's
useless to flush CB metadata.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_private.h