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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user