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

EdB edb+piglit at sigluy.net
Fri Feb 6 03:37:14 PST 2015


On Thursday 05 February 2015 13:49:37 Jan Vesely wrote:
> On Tue, 2015-01-06 at 21:23 +0100, EdB wrote:
> > Ping
> 
> pushed
thanks
> 
> > Le 2014-12-06 23:56, Jan Vesely a écrit :
> > > On Sat, 2014-12-06 at 12:17 +0100, EdB wrote:
> > >> Hello
> > >> 
> > >> The bug is Verified.Fixed.
> > >> I don't have commit access. Can someone push it?
> > > 
> > > you can add
> > > Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>
> > > 
> > > but I can't push changes
> > > 
> > >> 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
> > >> > 
> > >> >  }
> > >> 
> > >> _______________________________________________
> > >> Piglit mailing list
> > >> Piglit at lists.freedesktop.org
> > >> http://lists.freedesktop.org/mailman/listinfo/piglit



More information about the Piglit mailing list