r300: drop ureg_DECL_temporary in ntr

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41577>
This commit is contained in:
Pavel Ondračka 2026-05-07 14:33:36 +02:00 committed by Marge Bot
parent 303cea1217
commit e3136a8eba

View file

@ -242,13 +242,6 @@ struct ntr_live_reg_state {
nir_block_worklist worklist;
};
static void
ntr_allocate_regs_unoptimized(struct ntr_compile *c, nir_function_impl *impl)
{
for (int i = 0; i < c->num_temps; i++)
ureg_DECL_temporary(c->ureg);
}
static void
ntr_read_input_output(struct ntr_compile *c, gl_varying_slot location, unsigned base)
{
@ -1585,8 +1578,6 @@ ntr_emit_impl(struct ntr_compile *c, nir_function_impl *impl)
/* Emit the ntr insns */
ntr_emit_cf_list(c, &impl->body);
ntr_allocate_regs_unoptimized(c, impl);
/* Add constants and emit RC instructions directly. */
ntr_add_constants(c);
ntr_emit_cf_list_ureg(c, &impl->body);