On 2018-01-23 — 14:08, Francisco Jerez wrote: > Pierre Moreau <pierre.mor...@free.fr> writes: > > > Signed-off-by: Pierre Moreau <pierre.mor...@free.fr> > > Same comment as Karol, let's update the header instead.
I will do that. Though that won’t impact this patch, as cl_khr_il_program is not part of the official OpenCL headers. I have sent a pull request to their repo, but have yet to hear back from someone with merge rights. > > > --- > > include/CL/cl_ext.h | 34 ++++++++++++++++++++++++++++++++++ > > 1 file changed, 34 insertions(+) > > > > diff --git a/include/CL/cl_ext.h b/include/CL/cl_ext.h > > index 710bea8837..2e4845d27d 100644 > > --- a/include/CL/cl_ext.h > > +++ b/include/CL/cl_ext.h > > @@ -308,6 +308,40 @@ typedef struct _cl_mem_ion_host_ptr > > > > #endif /* CL_VERSION_1_1 */ > > > > + > > +/******************************* > > + * cl_khr_il_program extension * > > + *******************************/ > > + > > +#ifndef cl_khr_il_program > > +#define cl_khr_il_program 1 > > + > > +/* New property to clGetDeviceInfo for retrieving supported intermediate > > + * languages > > + */ > > +#define CL_DEVICE_IL_VERSION_KHR 0x105B > > + > > +/* New property to clGetProgramInfo for retrieving for retrieving the IL > > of a > > + * program > > + */ > > +#define CL_PROGRAM_IL_KHR 0x1169 > > + > > +extern CL_API_ENTRY cl_program > > + CL_API_CALL clCreateProgramWithILKHR( > > + cl_context /* context */, > > + const void * /* il */, > > + size_t /* length */, > > + cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2; > > + > > +typedef CL_API_ENTRY cl_program > > + (CL_API_CALL *clCreateProgramWithILKHR_fn)( > > + cl_context /* context */, > > + const void * /* il */, > > + size_t /* length */, > > + cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2; > > + > > +#endif /* cl_khr_il_program */ > > + > > #ifdef __cplusplus > > } > > #endif > > -- > > 2.16.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev