From d3212e0c46f4e0ffc576cb740eda402be3dc0a7a Mon Sep 17 00:00:00 2001 From: EdB Date: Wed, 26 Nov 2014 14:11:25 +0100 Subject: [PATCH] cl: fix clCompileProgram compil error with CL1.1 --- tests/cl/api/compile-program.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/cl/api/compile-program.c b/tests/cl/api/compile-program.c index d280f98..54adecc 100644 --- a/tests/cl/api/compile-program.c +++ b/tests/cl/api/compile-program.c @@ -70,6 +70,7 @@ const char* empty_strings[] = { "" }; +#if defined(CL_VERSION_1_2) static bool test(cl_program program, cl_uint num_devices, const cl_device_id *device_list, @@ -96,6 +97,7 @@ test(cl_program program, return true; } +#endif enum piglit_result piglit_cl_test(const int argc, @@ -103,6 +105,7 @@ piglit_cl_test(const int argc, const struct piglit_cl_api_test_config* config, const struct piglit_cl_api_test_env* env) { +#if defined(CL_VERSION_1_2) enum piglit_result result = PIGLIT_PASS; int i; @@ -363,4 +366,7 @@ piglit_cl_test(const int argc, clReleaseProgram(program); return result; +#else + return PIGLIT_SKIP; +#endif } -- 2.1.3