ntt: stop emitting TXF_LZ

No driver listens any more, so let's just drop this.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40993>
This commit is contained in:
Erik Faye-Lund 2026-04-16 13:10:14 +02:00 committed by Marge Bot
parent 0a8072f66e
commit f3a5e9c15b

View file

@ -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;