[Mesa-dev] [PATCH v4 20/20] clover: Implement clCreateProgramWithIL from OpenCL 2.1
Karol Herbst
kherbst at redhat.com
Thu Mar 8 09:42:13 UTC 2018
Reviewed-by: Karol Herbst <kherbst at redhat.com>
On Thu, Mar 8, 2018 at 1:21 AM, Pierre Moreau <pierre.morrow at free.fr> wrote:
> Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
> ---
>
> Notes:
> v3: Remove the const from the length argument of clCreateProgramWithIL
>
> 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 2501d0bc07..25ee5faae2 100644
> --- a/src/gallium/state_trackers/clover/api/program.cpp
> +++ b/src/gallium/state_trackers/clover/api/program.cpp
> @@ -212,6 +212,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.2
>
More information about the mesa-dev
mailing list