From 81f73c89deb44203e5012b850cfe3ae7bb86c420 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Thu, 13 Mar 2025 18:16:45 +0100 Subject: [PATCH] ir3: Fix const allocation when parsing assembly This fixes computerator. Fixes: 68ab25e6d4e ("ir3: split immediate state from rest of const state") Part-of: --- src/freedreno/ir3/ir3_parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_parser.y b/src/freedreno/ir3/ir3_parser.y index 6b890d799fa..1d994142572 100644 --- a/src/freedreno/ir3/ir3_parser.y +++ b/src/freedreno/ir3/ir3_parser.y @@ -247,7 +247,7 @@ static void add_const(unsigned reg, unsigned c0, unsigned c1, unsigned c2, unsig assert((reg & 0x7) == 0); int idx = reg >> (1 + 2); /* low bit is half vs full, next two bits are swiz */ if (idx * 4 + 4 > imm_state->size) { - imm_state->values = rerzalloc(imm_state, + imm_state->values = rerzalloc(variant, imm_state->values, __typeof__(imm_state->values[0]), imm_state->size,