ir3: Validate that ir3_register::instr is correct

Catch the mistake fixed in the previous commit.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469>
This commit is contained in:
Connor Abbott 2021-06-18 12:49:05 +02:00 committed by Marge Bot
parent ef7bc4a2aa
commit dce680737d
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ validate_reg(struct ir3_validate_ctx *ctx, struct ir3_instruction *instr,
}
validate_assert(ctx, found && "tied register not in the same instruction");
}
if ((reg->flags & IR3_REG_DEST) && (reg->flags & IR3_REG_SSA))
validate_assert(ctx, reg->instr == instr);
}
#define validate_reg_size(ctx, reg, type) \