Mesa (main): ir3: Skip src size validation for cat1
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Oct 11 11:42:37 UTC 2021
Module: Mesa
Branch: main
Commit: bbd830133734f0c8bd400f05b586bf865b4e06c4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bbd830133734f0c8bd400f05b586bf865b4e06c4
Author: Connor Abbott <cwabbott0 at gmail.com>
Date: Fri Oct 8 18:04:47 2021 +0200
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>
---
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 */
More information about the mesa-commit
mailing list