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:
parent
ef7bc4a2aa
commit
dce680737d
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue