ir3: correctly set wrmask for reload.macro

We used to set it MASK(elems) which would break when not all elements
are contiguous (which could happen for tex instructions after dce).

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 37c929ce5d
commit 70e10babea
+1 -1
View File
@@ -939,7 +939,7 @@ reload(struct ra_spill_ctx *ctx, struct ir3_register *reg,
dst->array.id = reg->array.id;
dst->size = reg->size;
} else {
dst->wrmask = MASK(elems);
dst->wrmask = reg->wrmask;
}
dst->merge_set = reg->merge_set;