aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bifrost.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-19 16:58:48 -0400
committerMarge Bot <[email protected]>2020-03-22 03:32:34 +0000
commit6b7077efda9a8b518c7f55f497504a031c623e54 (patch)
treeeb84077a5f4852917d87015cb7b1199c8b4a59a5 /src/panfrost/bifrost/bifrost.h
parentf8bbf44ca4d32889232ced844a1b939b8a86f727 (diff)
pan/bi: Implement FMA/MOV without modifiers
We split off MOV from FMOV since the canonical move on Bifrost doesn't accept modifiers. (We can still do fmov, but with something like add-0.) This will also make copyprop a little nicer, I think. Anyway, the non-modifier version we can implement as-is for FMA. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
Diffstat (limited to 'src/panfrost/bifrost/bifrost.h')
-rw-r--r--src/panfrost/bifrost/bifrost.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h
index dac4ad190dd..5ec8c495465 100644
--- a/src/panfrost/bifrost/bifrost.h
+++ b/src/panfrost/bifrost/bifrost.h
@@ -95,6 +95,9 @@ enum bifrost_packed_src {
BIFROST_SRC_PASS_ADD = 7,
};
+#define BIFROST_FMA_EXT (0xe0000)
+#define BIFROST_FMA_OP_MOV BIFROST_FMA_EXT | (0x32d)
+
struct bifrost_fma_inst {
unsigned src0 : 3;
unsigned op : 20;