From 653dff949e93a8dc53924387f7b18328d14ebc60 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Fri, 26 Jun 2020 12:25:01 +0200 Subject: [PATCH] v3d/compiler: fix spill offset MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Alejandro Piñeiro Reviewed-by: Jose Maria Casanova Crespo Fixes: 97566efe5cac0ff11b ("v3d: Rematerialize MOVs of uniforms instead of spilling them.") Part-of: --- src/broadcom/compiler/vir_register_allocate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broadcom/compiler/vir_register_allocate.c b/src/broadcom/compiler/vir_register_allocate.c index eac027f9e67..76b492d1bce 100644 --- a/src/broadcom/compiler/vir_register_allocate.c +++ b/src/broadcom/compiler/vir_register_allocate.c @@ -213,7 +213,7 @@ v3d_spill_reg(struct v3d_compile *c, int spill_temp) uint32_t spill_offset = 0; if (!is_uniform) { - uint32_t spill_offset = c->spill_size; + spill_offset = c->spill_size; c->spill_size += V3D_CHANNELS * sizeof(uint32_t); if (spill_offset == 0) -- 2.30.2