From 8d41221158550b47fb24c0486ae47ada0e47c2e1 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 17 Apr 2025 13:41:13 -0500 Subject: [PATCH] nak/nir: Use Kepler texture source ordering on SM30 SM30 (i.e. Kepler A) has Fermi's instruction encoding but it uses the same texture source ordering as Kepler B. It also supports bindless, unlike Fermi. Part-of: --- src/nouveau/compiler/nak_nir_lower_tex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/compiler/nak_nir_lower_tex.c b/src/nouveau/compiler/nak_nir_lower_tex.c index da8b368392d..66e84e16aaf 100644 --- a/src/nouveau/compiler/nak_nir_lower_tex.c +++ b/src/nouveau/compiler/nak_nir_lower_tex.c @@ -237,7 +237,7 @@ lower_tex(nir_builder *b, nir_tex_instr *tex, const struct nak_compiler *nak) tex->src[1].src_type = nir_tex_src_backend2; nir_src_rewrite(&tex->src[1].src, nir_vec(b, src1, src1_comps)); } - } else if (nak->sm >= 32) { + } else if (nak->sm >= 30) { nir_def *src[8] = { NULL, }; unsigned src_comps = 0;