Signed-off-by: Pierre Moreau <[email protected]> --- 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 [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
