[Libclc-dev] [PATCH 3/4] spirv: disable fp64 subnormals on SPIR-V
Dave Airlie via Libclc-dev
libclc-dev at lists.llvm.org
Thu Sep 26 17:59:18 PDT 2019
We need to investigate how this is going to work in a SPIR-V world
---
libclc/generic/lib/subnormal_config.cl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libclc/generic/lib/subnormal_config.cl b/libclc/generic/lib/subnormal_config.cl
index 4bcecfd82e1..2a754db8317 100644
--- a/libclc/generic/lib/subnormal_config.cl
+++ b/libclc/generic/lib/subnormal_config.cl
@@ -33,5 +33,9 @@ _CLC_DEF bool __clc_fp32_subnormals_supported() {
}
_CLC_DEF bool __clc_fp64_subnormals_supported() {
+#ifdef CLC_SPIRV //TODO workout how to support this in SPIR-V land
+ return false;
+#else
return !__clc_subnormals_disabled();
+#endif
}
--
2.21.0
More information about the Libclc-dev
mailing list