From bdbe6447edccba317c6a4705f17086c8cad2f07e Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Wed, 16 Apr 2025 14:14:51 -0500 Subject: [PATCH] nak/nir: Use Maxwell input interpolation for SM20+ It appears to be the same at least as far back as Kepler A. Part-of: --- src/nouveau/compiler/nak_nir_lower_fs_inputs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nouveau/compiler/nak_nir_lower_fs_inputs.c b/src/nouveau/compiler/nak_nir_lower_fs_inputs.c index 3e7445cb25e..bdd32be9a17 100644 --- a/src/nouveau/compiler/nak_nir_lower_fs_inputs.c +++ b/src/nouveau/compiler/nak_nir_lower_fs_inputs.c @@ -77,7 +77,7 @@ interp_fs_input(nir_builder *b, unsigned num_components, uint32_t addr, comps[c] = nir_fmul(b, comps[c], inv_w); } return nir_vec(b, comps, num_components); - } else if (nak->sm >= 50) { + } else if (nak->sm >= 20) { struct nak_nir_ipa_flags flags = { .interp_mode = interp_mode, .interp_freq = NAK_INTERP_FREQ_PASS, @@ -100,7 +100,7 @@ interp_fs_input(nir_builder *b, unsigned num_components, uint32_t addr, } return nir_vec(b, comps, num_components); } else { - unreachable("Figure out input interpolation on Kepler"); + unreachable("Unsupported shader model"); } }