[Mesa-dev] [PATCH v2 15/22] include/CL: Add cl_khr_il_program

Francisco Jerez currojerez at riseup.net
Tue Jan 23 22:08:13 UTC 2018


Pierre Moreau <pierre.morrow at free.fr> writes:

> Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>

Same comment as Karol, let's update the header instead.

> ---
>  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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180123/6b58a6d3/attachment.sig>


More information about the mesa-dev mailing list