[Mesa-dev] [PATCH v2 20/22] include/CL: Export OpenCL 2.1 functions
Pierre Moreau
pierre.morrow at free.fr
Tue Jan 23 08:52:30 UTC 2018
Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
---
include/CL/cl.h | 8 ++++++++
include/CL/cl_platform.h | 1 +
2 files changed, 9 insertions(+)
diff --git a/include/CL/cl.h b/include/CL/cl.h
index 316565d6e4..2130c19c5e 100644
--- a/include/CL/cl.h
+++ b/include/CL/cl.h
@@ -280,6 +280,7 @@ typedef struct _cl_buffer_region {
#define CL_DEVICE_PRINTF_BUFFER_SIZE 0x1049
#define CL_DEVICE_IMAGE_PITCH_ALIGNMENT 0x104A
#define CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT 0x104B
+#define CL_DEVICE_IL_VERSION 0x105B
/* cl_device_fp_config - bitfield */
#define CL_FP_DENORM (1 << 0)
@@ -455,6 +456,7 @@ typedef struct _cl_buffer_region {
#define CL_PROGRAM_BINARIES 0x1166
#define CL_PROGRAM_NUM_KERNELS 0x1167
#define CL_PROGRAM_KERNEL_NAMES 0x1168
+#define CL_PROGRAM_IL 0x1169
/* cl_program_build_info */
#define CL_PROGRAM_BUILD_STATUS 0x1181
@@ -757,6 +759,12 @@ clCreateProgramWithBuiltInKernels(cl_context /* context */,
const char * /* kernel_names */,
cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2;
+extern CL_API_ENTRY cl_program CL_API_CALL
+clCreateProgramWithIL(cl_context /* context */,
+ const void* /* il */,
+ size_t /* length */,
+ cl_int* /* errcode_ret */) CL_API_SUFFIX__VERSION_2_1;
+
extern CL_API_ENTRY cl_int CL_API_CALL
clRetainProgram(cl_program /* program */) CL_API_SUFFIX__VERSION_1_0;
diff --git a/include/CL/cl_platform.h b/include/CL/cl_platform.h
index 7f6f5e8a74..105d3cc1f0 100644
--- a/include/CL/cl_platform.h
+++ b/include/CL/cl_platform.h
@@ -75,6 +75,7 @@ extern "C" {
#define CL_EXT_SUFFIX__VERSION_1_1
#define CL_API_SUFFIX__VERSION_1_2
#define CL_EXT_SUFFIX__VERSION_1_2
+ #define CL_API_SUFFIX__VERSION_2_1
#ifdef __GNUC__
#ifdef CL_USE_DEPRECATED_OPENCL_1_0_APIS
--
2.16.0
More information about the mesa-dev
mailing list