From f3a5e9c15b2b7db20d50d0e858f3fce42024fa80 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 16 Apr 2026 13:10:14 +0200 Subject: [PATCH] ntt: stop emitting TXF_LZ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No driver listens any more, so let's just drop this. Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/nir/nir_to_tgsi.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi.c b/src/gallium/auxiliary/nir/nir_to_tgsi.c index 39a5ddcc574..2405cb6dd37 100644 --- a/src/gallium/auxiliary/nir/nir_to_tgsi.c +++ b/src/gallium/auxiliary/nir/nir_to_tgsi.c @@ -75,7 +75,6 @@ struct ntt_compile { bool needs_texcoord_semantic; bool native_integers; - bool has_txf_lz; bool addr_declared[3]; struct ureg_dst addr_reg[3]; @@ -2786,15 +2785,6 @@ ntt_emit_texture(struct ntt_compile *c, nir_tex_instr *instr) case nir_texop_txf: case nir_texop_txf_ms: tex_opcode = TGSI_OPCODE_TXF; - - if (c->has_txf_lz) { - int lod_src = nir_tex_instr_src_index(instr, nir_tex_src_lod); - if (lod_src >= 0 && - nir_src_is_const(instr->src[lod_src].src) && - ntt_src_as_uint(c, instr->src[lod_src].src) == 0) { - tex_opcode = TGSI_OPCODE_TXF_LZ; - } - } break; case nir_texop_txl: tex_opcode = TGSI_OPCODE_TXL; @@ -4026,8 +4016,6 @@ const void *nir_to_tgsi_options(struct nir_shader *s, c->needs_texcoord_semantic = screen->caps.tgsi_texcoord; - c->has_txf_lz = - screen->caps.tgsi_tex_txf_lz; c->s = s; c->native_integers = native_integers;