radv: fix centroid interpolation
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 21 May 2018 09:15:51 +0000 (11:15 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 21 May 2018 11:57:46 +0000 (13:57 +0200)
commit73df16dcee79e2281c8d8a830dbbe6655359c82d
tree3e2c98af1f5bed16c212b37c5fc387735ec2c0b9
parentf26b008e283ee11cfeeb4efb61ce435a04b04b2f
radv: fix centroid interpolation

It's legal to set the centroid and sample interpolation modes
when MSAA disabled. So, we have to initialize the centroid
inputs because the hardware doesn't.

This fixes rendering issues with DXVK and The Witness, World of
Warcraft, Trackmania and probably more games.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106315
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102390
CC: 18.0 18.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_nir_to_llvm.c