From bbd830133734f0c8bd400f05b586bf865b4e06c4 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 8 Oct 2021 18:04:47 +0200 Subject: [PATCH] ir3: Skip src size validation for cat1 They are already handled below, like cat6. The default rules won't work for the READ_* macros once they have 16-bit sources. Part-of: --- src/freedreno/ir3/ir3_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_validate.c b/src/freedreno/ir3/ir3_validate.c index 8365c612277..dad846a84db 100644 --- a/src/freedreno/ir3/ir3_validate.c +++ b/src/freedreno/ir3/ir3_validate.c @@ -188,7 +188,7 @@ validate_instr(struct ir3_validate_ctx *ctx, struct ir3_instruction *instr) else validate_assert(ctx, reg->flags & IR3_REG_HALF); } - } else if (opc_cat(instr->opc) == 6) { + } else if (opc_cat(instr->opc) == 1 || opc_cat(instr->opc) == 6) { /* handled below */ } else if (opc_cat(instr->opc) == 0) { /* end/chmask/etc are allowed to have different size sources */