aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bifrost.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-13 17:32:58 -0400
committerMarge Bot <[email protected]>2020-04-13 22:32:40 +0000
commit640d69d1662b03f2d28319ede50be0bf3f6e9c4b (patch)
treedc59d9a0bf7f2296930f494715a4888cae1bf728 /src/panfrost/bifrost/bifrost.h
parent8cfe660326a2fb455bed0499c80f38f6f17f8f0e (diff)
pan/bi: ADD packing for CONVERT
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4539>
Diffstat (limited to 'src/panfrost/bifrost/bifrost.h')
-rw-r--r--src/panfrost/bifrost/bifrost.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h
index 8700b18d436..5552dd92585 100644
--- a/src/panfrost/bifrost/bifrost.h
+++ b/src/panfrost/bifrost/bifrost.h
@@ -335,6 +335,7 @@ struct bifrost_shift_add {
/* Two sources for vectorization */
#define BIFROST_FMA_FLOAT32_TO_16 (0xdd000 >> 3)
+#define BIFROST_ADD_FLOAT32_TO_16 (0x0EC00 >> 3)
enum bifrost_convert_mode {
BIFROST_CONV_UNK0 = 0,
@@ -361,6 +362,7 @@ enum bifrost_convert_mode {
((is_unsigned & 1) | ((roundmode & 3) << 1) | ((swizzle & 3) << 3) | ((mode & 7) << 5))
#define BIFROST_FMA_CONVERT (0xe0000)
+#define BIFROST_ADD_CONVERT (0x07800)
enum bifrost_ldst_type {
BIFROST_LDST_F16 = 0,