radv: fix alpha-to-coverage when there is unused color attachments
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 6 Jun 2019 14:31:01 +0000 (16:31 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 10 Jun 2019 07:23:41 +0000 (09:23 +0200)
commit91aa25f4625014ddf194578fc1c1d0a505e5f8db
tree51aff7e13b96c9fe8717eed23b75e0851733cd6d
parent2fe7f9f2aefc62bcd16e9bcbeaa0c9862d0b006a
radv: fix alpha-to-coverage when there is unused color attachments

When alphaToCoverage is enabled, we should always write the alpha
channel of MRT0 if it's unused. This now matches RadeonSI.

This fixes the new CTS:
dEQP-VK.pipeline.multisample.alpha_to_coverage_unused_attachment.samples_*.alpha_invisible

Cc: 19.0 19.1 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl
src/amd/vulkan/radv_pipeline.c