[Piglit] [PATCH] cl: fix clCompileProgram compil error with CL1.1

EdB edb+piglit at sigluy.net
Sat Dec 6 03:17:01 PST 2014


Hello

The bug is Verified.Fixed.
I don't have commit access. Can someone push it? 

On Thursday 27 November 2014 12:38:52 EdB wrote:
> This fix https://bugs.freedesktop.org/show_bug.cgi?id=86361
> ---
>  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
>  }



More information about the Piglit mailing list