From b5c28332586c2b5cccfc837a29b57d2c37260a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Mon, 17 Jul 2023 09:01:08 +0200 Subject: [PATCH] r300: remove some unsupported texture opcodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pavel Ondračka Reviewed-by: Emma Anholt Reviewed-by: Filip Gawin Part-of: --- src/gallium/drivers/r300/compiler/nir_to_rc.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/gallium/drivers/r300/compiler/nir_to_rc.c b/src/gallium/drivers/r300/compiler/nir_to_rc.c index 880914ba6a3..5fdfe04e48f 100644 --- a/src/gallium/drivers/r300/compiler/nir_to_rc.c +++ b/src/gallium/drivers/r300/compiler/nir_to_rc.c @@ -73,7 +73,6 @@ struct ntr_compile { struct ureg_program *ureg; bool needs_texcoord_semantic; - bool has_txf_lz; bool addr_declared[3]; struct ureg_dst addr_reg[3]; @@ -1800,19 +1799,6 @@ ntr_emit_texture(struct ntr_compile *c, nir_tex_instr *instr) else tex_opcode = TGSI_OPCODE_TEX; break; - 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) && - ntr_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; break; @@ -2604,8 +2590,6 @@ const void *nir_to_rc_options(struct nir_shader *s, c->needs_texcoord_semantic = screen->get_param(screen, PIPE_CAP_TGSI_TEXCOORD); - c->has_txf_lz = - screen->get_param(screen, PIPE_CAP_TGSI_TEX_TXF_LZ); c->s = s; c->ureg = ureg_create(pipe_shader_type_from_mesa(s->info.stage));