summaryrefslogtreecommitdiffstats
path: root/src/panfrost/include
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-27 14:39:39 -0400
committerMarge Bot <[email protected]>2020-03-31 01:12:26 +0000
commitc2a8ef907b528b125ff0827e8ea2588a85022fd6 (patch)
tree6b49cc8b293657ae670f150b089837da77346816 /src/panfrost/include
parent77e04eb2e2e0170343ab424f51ace3fbc175cb77 (diff)
panfrost: Enable PIPE_SHADER_CAP_FP16 on Bifrost
We don't have fp16 implemented on Midgard yet but on Bifrost we can flip it on now. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4382>
Diffstat (limited to 'src/panfrost/include')
-rw-r--r--src/panfrost/include/panfrost-quirks.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/panfrost/include/panfrost-quirks.h b/src/panfrost/include/panfrost-quirks.h
index 8b8aa0812cd..afac6d82d2b 100644
--- a/src/panfrost/include/panfrost-quirks.h
+++ b/src/panfrost/include/panfrost-quirks.h
@@ -39,9 +39,14 @@
#define MIDGARD_SFBD (1 << 1)
+/* Whether fp16 is broken in the compiler. Hopefully this quirk will go away
+ * over time */
+
+#define MIDGARD_BROKEN_FP16 (1 << 2)
+
/* Quirk collections common to particular uarchs */
-#define MIDGARD_QUIRKS (0)
+#define MIDGARD_QUIRKS (MIDGARD_BROKEN_FP16)
#define BIFROST_QUIRKS (0)