[Mesa-dev] [PATCH v5 21/21] clover: Implement clCreateProgramWithIL from OpenCL 2.1
Pierre Moreau
pierre.morrow at free.fr
Sun Mar 25 18:02:30 UTC 2018
Reviewed-by: Karol Herbst <kherbst at redhat.com>
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 8be4d3cb26..f5f3248f26 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 851a212b99..a5d1fd0567 100644
--- a/src/gallium/state_trackers/clover/api/program.cpp
+++ b/src/gallium/state_trackers/clover/api/program.cpp
@@ -185,6 +185,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.16.3
More information about the mesa-dev
mailing list