ir3: Fix const allocation when parsing assembly

This fixes computerator.

Fixes: 68ab25e6d4 ("ir3: split immediate state from rest of const state")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34055>
This commit is contained in:
Connor Abbott 2025-03-13 18:16:45 +01:00 committed by Marge Bot
parent 4707e9c8b9
commit 81f73c89de

View file

@ -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,