radv: enable FMASK for color attachments only
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 28 Apr 2020 08:08:17 +0000 (10:08 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 28 Apr 2020 15:23:05 +0000 (17:23 +0200)
commit523e9603d3fba507be9fe9a70a24edfd0a41792b
treeae1338c4437bd291926149ec40b78499553ee417
parent81ac741f8929b90a16a0b4251f3e6da02dde6133
radv: enable FMASK for color attachments only

The reason behind this is that FMASK requires CMASK and also that
FMASK for non color attachments looks unnecessary. It's currently
much easier to add this simple check because the driver tries to
always enable DCC first and if we enable FMASK only if CMASK, we
might loose some FMASK compressions.

This helps fixing some new robustness2 tests which fails because
only FMASK is enabled.

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/4783>
src/amd/vulkan/radv_image.c