[Piglit] [PATCH] cl: Fix cl_khr_fp64 check

Jan Vesely jano.vesely at gmail.com
Fri Apr 29 02:02:07 UTC 2016


Signed-off-by: Jan Vesely <jano.vesely at gmail.com>
---
 tests/cl/program/build/scalar-data-types.cl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/cl/program/build/scalar-data-types.cl b/tests/cl/program/build/scalar-data-types.cl
index 00693f5..09fd15f 100755
--- a/tests/cl/program/build/scalar-data-types.cl
+++ b/tests/cl/program/build/scalar-data-types.cl
@@ -21,8 +21,9 @@ kernel void test(global int* out) {
 	uintptr_t uit;
 	//half h; // Can be only used as a pointer to a buffer
 
-// Needs cl_khr_fp64 or OpenCL C 1.2
-#if __OPENCL_C_VERSION__ >= 120
+// Needs cl_khr_fp64
+#ifdef cl_khr_fp64
+#pragma OPENCL EXTENSION cl_khr_fp64 : require
 	double d;
 	double* d1;
 #endif
-- 
2.7.4



More information about the Piglit mailing list