From 901c4859970989a85c72bac9d71c5fd43b6deaff Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Wed, 22 May 2024 13:08:50 +0200 Subject: [PATCH] broadcom/compiler: make add_node return the node index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Alejandro PiƱeiro cc: mesa-stable Part-of: --- src/broadcom/compiler/vir_register_allocate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/broadcom/compiler/vir_register_allocate.c b/src/broadcom/compiler/vir_register_allocate.c index 53e84840899..a4b9d432690 100644 --- a/src/broadcom/compiler/vir_register_allocate.c +++ b/src/broadcom/compiler/vir_register_allocate.c @@ -372,7 +372,7 @@ ensure_nodes(struct v3d_compile *c) /* Creates the interference node for a new temp. We use this to keep the node * list updated during the spilling process, which generates new temps/nodes. */ -static void +static int add_node(struct v3d_compile *c, uint32_t temp, uint8_t class_bits) { ensure_nodes(c); @@ -387,6 +387,8 @@ add_node(struct v3d_compile *c, uint32_t temp, uint8_t class_bits) c->nodes.info[node].is_ldunif_dst = false; c->nodes.info[node].is_program_end = false; c->nodes.info[node].unused = false; + + return node; } /* The spill offset for this thread takes a bit of setup, so do it once at