From d3ca1c6e5d1f48f51453d544c1d8a1f0bae604be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Thu, 7 May 2026 19:18:35 +0200 Subject: [PATCH] r300: get rid of ureg_program in ntr Assisted-by: Codex (GPT-5.5) Part-of: --- src/gallium/drivers/r300/compiler/nir_to_rc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gallium/drivers/r300/compiler/nir_to_rc.c b/src/gallium/drivers/r300/compiler/nir_to_rc.c index c67635ade21..fba3ccf7770 100644 --- a/src/gallium/drivers/r300/compiler/nir_to_rc.c +++ b/src/gallium/drivers/r300/compiler/nir_to_rc.c @@ -49,7 +49,6 @@ struct ntr_reg_interval { struct ntr_compile { nir_shader *s; nir_function_impl *impl; - struct ureg_program *ureg; struct r300_shader_semantics *semantics; /* Options */ @@ -1911,8 +1910,6 @@ nir_to_rc(struct nir_shader *s, struct pipe_screen *screen, } c->s = s; - c->ureg = ureg_create(s->info.stage); - ureg_setup_shader_info(c->ureg, &s->info); /* Emit the main function */ nir_function_impl *impl = nir_shader_get_entrypoint(c->s); ntr_emit_impl(c, impl); @@ -1935,8 +1932,6 @@ nir_to_rc(struct nir_shader *s, struct pipe_screen *screen, rc_calculate_inputs_outputs(compiler); - ureg_destroy(c->ureg); - ralloc_free(c); ralloc_free(s); }