ir3: set offset on splits created while spilling

Fixes: 613eaac7b5 ("ir3: Initial support for spilling non-shared registers")
Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29497>
This commit is contained in:
Job Noorman 2024-06-17 11:34:25 +02:00 committed by Marge Bot
parent af6f82b954
commit 37c929ce5d

View file

@ -864,6 +864,7 @@ split(struct ir3_register *def, unsigned offset,
assert(def->merge_set);
struct ir3_instruction *split =
ir3_instr_create(block, OPC_META_SPLIT, 1, 1);
split->split.off = offset;
struct ir3_register *dst = __ssa_dst(split);
dst->flags |= def->flags & IR3_REG_HALF;
struct ir3_register *src = ir3_src_create(split, INVALID_REG, def->flags);