aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bi_tables.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-02 20:52:36 -0500
committerMarge Bot <[email protected]>2020-03-05 14:35:38 +0000
commitd69bf8db6217b7309ea7a7aec8139c8151b39f3c (patch)
tree74c54345cc176f455f104db3931204980e79e6cb /src/panfrost/bifrost/bi_tables.c
parentbbf41ffb00d8d78db1cf43403ab7f6af5a2f9ec3 (diff)
pan/bi: Add a bifrost_roundmode field
And a class property signaling it's okay to use. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
Diffstat (limited to 'src/panfrost/bifrost/bi_tables.c')
-rw-r--r--src/panfrost/bifrost/bi_tables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panfrost/bifrost/bi_tables.c b/src/panfrost/bifrost/bi_tables.c
index 0681fbad00d..c1acd379d22 100644
--- a/src/panfrost/bifrost/bi_tables.c
+++ b/src/panfrost/bifrost/bi_tables.c
@@ -36,7 +36,7 @@ unsigned bi_class_props[BI_NUM_CLASSES] = {
[BI_CONVERT] = 0,
[BI_CSEL] = 0,
[BI_DISCARD] = 0,
- [BI_FMA] = 0,
+ [BI_FMA] = BI_ROUNDMODE,
[BI_FREXP] = 0,
[BI_LOAD] = 0,
[BI_LOAD_ATTR] = 0,
@@ -49,5 +49,5 @@ unsigned bi_class_props[BI_NUM_CLASSES] = {
[BI_STORE_VAR] = 0,
[BI_SPECIAL] = 0,
[BI_TEX] = 0,
- [BI_ROUND] = BI_GENERIC,
+ [BI_ROUND] = BI_GENERIC | BI_ROUNDMODE,
};