diff options
author | Samuel Pitoiset <[email protected]> | 2018-05-21 11:15:51 +0200 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-05-30 16:56:47 -0700 |
commit | fd18f81a0cc925ddc68da48c6551b7cfb8273a31 (patch) | |
tree | c19095377e42b9ae7f53f4b1622bb5740cb4a2b1 | |
parent | b49daeac88f2a66e63c5a692ca06299442dd4c3f (diff) |
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 <[email protected]>
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
(cherry picked from commit 73df16dcee79e2281c8d8a830dbbe6655359c82d)
-rw-r--r-- | src/amd/vulkan/radv_nir_to_llvm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 787381c629d..49d72154c2e 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -1977,9 +1977,6 @@ static void prepare_interp_optimize(struct radv_shader_context *ctx, struct nir_shader *nir) { - if (!ctx->options->key.fs.multisample) - return; - bool uses_center = false; bool uses_centroid = false; nir_foreach_variable(variable, &nir->inputs) { |