From d9d549ff8837b488f76981f23fa56c42164ee683 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 21 Mar 2020 21:19:43 -0400 Subject: pan/bi: Pack csel4 opcodes These are pretty straightforward but there's a lot of details to keep straight. In the IR, we keep a general logical comparator and types separately; in the hardware, the type gets fused with a (much more) limited number of comparators. So there's a fair bit of code here to account for these differences, fusing in the type information, and changing up argument order as necessary to make it actually correct. Anything to save a bit! Signed-off-by: Alyssa Rosenzweig Tested-by: Marge Bot Part-of: --- src/panfrost/bifrost/bifrost.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/panfrost/bifrost/bifrost.h') diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index 7b8854f56f3..a6508440cbb 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -230,6 +230,9 @@ enum bifrost_csel_cond { BIFROST_UGE_I = 0x7 }; +#define BIFROST_FMA_OP_CSEL4 (0x5c) +#define BIFROST_FMA_OP_CSEL4_V16 (0xdc) + struct bifrost_csel4 { unsigned src0 : 3; unsigned src1 : 3; -- cgit v1.2.3