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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13271>
This commit is contained in:
Connor Abbott 2021-10-08 18:04:47 +02:00 committed by Marge Bot
parent bf0013f3c5
commit bbd8301337

View file

@ -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 */