[Mesa-dev] [PATCH v10 20/20] clover: Implement clCreateProgramWithIL from OpenCL 2.1
Pierre Moreau
pierre.morrow at free.fr
Tue Jan 8 21:11:09 UTC 2019
Reviewed-by: Karol Herbst <kherbst at redhat.com>
Change since:
* v2: Remove the const from the length argument of clCreateProgramWithIL
Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
---
src/gallium/state_trackers/clover/api/dispatch.cpp | 2 +-
src/gallium/state_trackers/clover/api/program.cpp | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/clover/api/dispatch.cpp b/src/gallium/state_trackers/clover/api/dispatch.cpp
index 8be4d3cb261..f5f3248f26b 100644
--- a/src/gallium/state_trackers/clover/api/dispatch.cpp
+++ b/src/gallium/state_trackers/clover/api/dispatch.cpp
@@ -162,7 +162,7 @@ namespace clover {
NULL, // clSetKernelExecInfo
NULL, // clGetKernelSubGroupInfoKHR
NULL, // clCloneKernel
- NULL, // clCreateProgramWithIL
+ clCreateProgramWithIL,
NULL, // clEnqueueSVMMigrateMem
NULL, // clGetDeviceAndHostTimer
NULL, // clGetHostTimer
diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp
index 9ad7297da57..2a2ef932a32 100644
--- a/src/gallium/state_trackers/clover/api/program.cpp
+++ b/src/gallium/state_trackers/clover/api/program.cpp
@@ -184,6 +184,14 @@ clover::CreateProgramWithILKHR(cl_context d_ctx, const void *il,
return NULL;
}
+CLOVER_API cl_program
+clCreateProgramWithIL(cl_context d_ctx,
+ const void *il,
+ size_t length,
+ cl_int *r_errcode) {
+ return CreateProgramWithILKHR(d_ctx, il, length, r_errcode);
+}
+
CLOVER_API cl_program
clCreateProgramWithBuiltInKernels(cl_context d_ctx, cl_uint n,
const cl_device_id *d_devs,
--
2.20.1
More information about the mesa-dev
mailing list