r300: get rid of the precise modifier

Nothing in the backed actually uses this

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41577>
This commit is contained in:
Pavel Ondračka 2026-05-07 20:40:19 +02:00 committed by Marge Bot
parent 1cbe2e0d07
commit 2b417a0183

View file

@ -28,7 +28,6 @@
struct ntr_insn {
struct rc_sub_instruction inst;
bool precise : 1;
};
struct ntr_block {
@ -73,9 +72,6 @@ struct ntr_compile {
unsigned current_if_else;
unsigned cf_label;
/* Whether we're currently emitting instructiosn for a precise NIR instruction. */
bool precise;
unsigned num_temps;
/* Map from NIR driver_location to RC input register. */
@ -200,7 +196,6 @@ ntr_insn(struct ntr_compile *c, rc_opcode opcode, const struct ureg_dst *dst,
.inst = {
.Opcode = opcode,
},
.precise = c->precise,
};
if (dst) {
insn.inst.DstReg = ntr_rc_dst_from_ureg(c, *dst);
@ -853,8 +848,6 @@ ntr_emit_alu(struct ntr_compile *c, nir_alu_instr *instr)
if (instr->op == nir_op_fsat && nir_legacy_fsat_folds(instr))
return;
c->precise = nir_alu_instr_is_exact(instr);
assert(num_srcs <= ARRAY_SIZE(src));
for (i = 0; i < num_srcs; i++)
src[i] = ntr_get_alu_src(c, instr, i);
@ -985,8 +978,6 @@ ntr_emit_alu(struct ntr_compile *c, nir_alu_instr *instr)
UNREACHABLE("Unknown NIR opcode");
}
}
c->precise = false;
}
static struct ureg_src