From e3136a8ebaa48ba7b8bf1a95306b0f464948ee19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Thu, 7 May 2026 14:33:36 +0200 Subject: [PATCH] r300: drop ureg_DECL_temporary in ntr Part-of: --- src/gallium/drivers/r300/compiler/nir_to_rc.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/gallium/drivers/r300/compiler/nir_to_rc.c b/src/gallium/drivers/r300/compiler/nir_to_rc.c index 6ed29de978d..69788b2238e 100644 --- a/src/gallium/drivers/r300/compiler/nir_to_rc.c +++ b/src/gallium/drivers/r300/compiler/nir_to_rc.c @@ -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);