[Piglit] [PATCH 1/1] cl: Enable required extension before using double type
Jan Vesely
jan.vesely at rutgers.edu
Fri Mar 27 16:36:26 PDT 2015
Fixes failures on OCL-1.1 implementations that provide cl_khr_fp64
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
generated_tests/cl/store/store-kernels-global.inc | 4 ++--
generated_tests/cl/store/store-kernels-local.inc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/generated_tests/cl/store/store-kernels-global.inc b/generated_tests/cl/store/store-kernels-global.inc
index b6220d0..ae9b74e 100644
--- a/generated_tests/cl/store/store-kernels-global.inc
+++ b/generated_tests/cl/store/store-kernels-global.inc
@@ -1,9 +1,9 @@
-typedef TYPE type_t;
-
#if TYPE == double
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
#endif
+typedef TYPE type_t;
+
kernel void store_global(global type_t *out, global type_t *in) {
out[0] = in[0];
out[1] = in[1];
diff --git a/generated_tests/cl/store/store-kernels-local.inc b/generated_tests/cl/store/store-kernels-local.inc
index b3265f4..6692e37 100644
--- a/generated_tests/cl/store/store-kernels-local.inc
+++ b/generated_tests/cl/store/store-kernels-local.inc
@@ -1,9 +1,9 @@
-typedef TYPE type_t;
-
#if TYPE == double
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
#endif
+typedef TYPE type_t;
+
kernel void store_local(global type_t *out, global type_t *in) {
local type_t local_data[8];
size_t id = get_local_id(0);
--
2.1.0
More information about the Piglit
mailing list