From 0e95730be0eec7770bdc942c81b905c3779b28d1 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Tue, 14 Apr 2026 09:11:29 +0200 Subject: [PATCH] ir3/parser: set constlen when adding const regs Since we don't set constlen anymore based on static const reg usage, computerator was broken. Fix this by setting constlen for @const et al. Signed-off-by: Job Noorman Fixes: 4e456ebde46 ("ir3/collect_info: remove max_const calculation") Part-of: --- src/freedreno/ir3/ir3_parser_support.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedreno/ir3/ir3_parser_support.c b/src/freedreno/ir3/ir3_parser_support.c index 2dba2cd0024..79cc98935d1 100644 --- a/src/freedreno/ir3/ir3_parser_support.c +++ b/src/freedreno/ir3/ir3_parser_support.c @@ -252,6 +252,7 @@ add_const(unsigned reg, unsigned c0, unsigned c1, unsigned c2, unsigned c3) for (unsigned i = imm_state->size; i < idx * 4; i++) imm_state->values[i] = 0xd0d0d0d0; imm_state->size = imm_state->count = idx * 4 + 4; + variant->constlen = MAX2(variant->constlen, imm_state->size / 4); } imm_state->values[idx * 4 + 0] = c0; imm_state->values[idx * 4 + 1] = c1;