mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
ir3/merge_regs: fix merge set alignment check
b_offset should be checked against b's alignment, not a's. Signed-off-by: Job Noorman <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35858>
This commit is contained in:
parent
60eebe964d
commit
28e810eb74
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ merge_sets_interfere(struct ir3_liveness *live, struct ir3_merge_set *a,
|
|||
int dom_index = -1;
|
||||
|
||||
/* Reject trying to merge the sets if the alignment doesn't work out */
|
||||
if (b_offset % a->alignment != 0)
|
||||
if ((a->alignment + b_offset) % b->alignment != 0)
|
||||
return true;
|
||||
|
||||
while (a_index < a->regs_count || b_index < b->regs_count) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue