diff options
author | EdB <edb+piglit@sigluy.net> | 2014-11-27 12:38:52 +0100 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2015-02-05 13:42:58 -0500 |
commit | 9c8b3290bb34da12571fc201db75c0b13b276834 (patch) | |
tree | a829e4acc2b367f1126d835b4055c2a4aad8fc7c | |
parent | 4ce9b226ebc376a131c7cf7214309f8b319ecc1e (diff) |
cl: fix clCompileProgram compil error with CL1.1
This fix https://bugs.freedesktop.org/show_bug.cgi?id=86361
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
-rw-r--r-- | tests/cl/api/compile-program.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cl/api/compile-program.c b/tests/cl/api/compile-program.c index 821033d31..23659fa0c 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 } |