mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
clover: Implement clCreateProgramWithIL from OpenCL 2.1
v2: Remove clCreateProgramWithIL from api/invalid.cpp Reviewed-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Pierre Moreau <dev@pmoreau.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2078>
This commit is contained in:
parent
af09db6e58
commit
44b8e8b98d
2 changed files with 8 additions and 9 deletions
|
|
@ -91,15 +91,6 @@ clSetProgramReleaseCallback(cl_program d_prog,
|
|||
return CL_INVALID_OPERATION;
|
||||
}
|
||||
|
||||
CLOVER_API cl_program
|
||||
clCreateProgramWithIL(cl_context context,
|
||||
const void *il,
|
||||
size_t length,
|
||||
cl_int *r_errorcode) {
|
||||
*r_errorcode = CL_INVALID_OPERATION;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
CLOVER_API cl_int
|
||||
clSetProgramSpecializationConstant(cl_program program,
|
||||
cl_uint spec_id,
|
||||
|
|
|
|||
|
|
@ -213,6 +213,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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue