aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/compiler.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-14 12:22:28 -0400
committerAlyssa Rosenzweig <[email protected]>2020-04-17 16:25:34 -0400
commitcc611566260eacc0d4e92d8b3dc3a8a4d7c94b6e (patch)
tree12995c1e53cf865c6ff8a27023902b25c7aba657 /src/panfrost/bifrost/compiler.h
parentaf01378dce1873c520c52a536ee7d1731c18105d (diff)
pan/bi: Add special op for exp2
Needs some extra help but basically exp2_fast Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4615>
Diffstat (limited to 'src/panfrost/bifrost/compiler.h')
-rw-r--r--src/panfrost/bifrost/compiler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h
index 64baf8cc4c7..90f0e94a6e0 100644
--- a/src/panfrost/bifrost/compiler.h
+++ b/src/panfrost/bifrost/compiler.h
@@ -195,6 +195,11 @@ enum bi_table_op {
enum bi_special_op {
BI_SPECIAL_FRCP,
BI_SPECIAL_FRSQ,
+
+ /* fp32 exp2() with low precision, suitable for half_exp2() in CL or
+ * exp2() in GL. In the first argument, it takes f2i_rte(x * 2^24). In
+ * the second, it takes x itself. */
+ BI_SPECIAL_EXP2_LOW,
};
typedef struct {