freedreno/ir3: Fix validation of subgroup macros

They don't need to enforce that src types are all the same.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13300>
This commit is contained in:
Rob Clark 2021-10-10 09:33:46 -07:00 committed by Marge Bot
parent e68d918ffb
commit 138be96301

View file

@ -199,6 +199,10 @@ validate_instr(struct ir3_validate_ctx *ctx, struct ir3_instruction *instr)
/* pcopy sources have to match with their destination but can have
* different sizes from each other.
*/
} else if (instr->opc == OPC_ANY_MACRO || instr->opc == OPC_ALL_MACRO ||
instr->opc == OPC_READ_FIRST_MACRO ||
instr->opc == OPC_READ_COND_MACRO) {
/* nothing yet */
} else if (n > 0) {
validate_assert(ctx, (last_reg->flags & IR3_REG_HALF) ==
(reg->flags & IR3_REG_HALF));