mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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>
(cherry picked from commit 73df16dcee)
This commit is contained in:
parent
b49daeac88
commit
fd18f81a0c
1 changed files with 0 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue