Skip to content
Snippets Groups Projects
Commit 2684da9d authored by Michal Babej's avatar Michal Babej
Browse files

fix missing (deprecated) API: clSetCommandQueueProperty()

seems now used by OpenCL-CTS
parent 8d3cfc5d
No related branches found
No related tags found
No related merge requests found
...@@ -169,4 +169,17 @@ ERROR: ...@@ -169,4 +169,17 @@ ERROR:
} }
return NULL; return NULL;
} }
POsym(clCreateCommandQueueWithProperties) POsym (clCreateCommandQueueWithProperties)
CL_API_ENTRY cl_int CL_API_CALL POname (clSetCommandQueueProperty) (
cl_command_queue command_queue,
cl_command_queue_properties properties,
cl_bool enable,
cl_command_queue_properties *old_properties)
CL_API_SUFFIX__VERSION_1_0_DEPRECATED
{
/* CL_INVALID_OPERATION if no devices in the context associated with
* command_queue support modifying the properties of a command-queue */
return CL_INVALID_OPERATION;
}
POsym (clSetCommandQueueProperty)
...@@ -50,7 +50,7 @@ struct _cl_icd_dispatch pocl_dispatch = { ...@@ -50,7 +50,7 @@ struct _cl_icd_dispatch pocl_dispatch = {
&POname(clRetainCommandQueue), /* 10 */ &POname(clRetainCommandQueue), /* 10 */
&POname(clReleaseCommandQueue), &POname(clReleaseCommandQueue),
&POname(clGetCommandQueueInfo), &POname(clGetCommandQueueInfo),
NULL /*clSetCommandQueueProperty*/, &POname(clSetCommandQueueProperty),
&POname(clCreateBuffer), &POname(clCreateBuffer),
&POname(clCreateImage2D), &POname(clCreateImage2D),
&POname(clCreateImage3D), &POname(clCreateImage3D),
......
...@@ -134,6 +134,7 @@ POdeclsym(clSVMAlloc) ...@@ -134,6 +134,7 @@ POdeclsym(clSVMAlloc)
POdeclsym(clSetKernelArgSVMPointer) POdeclsym(clSetKernelArgSVMPointer)
POdeclsym(clSetKernelExecInfo) POdeclsym(clSetKernelExecInfo)
POdeclsym(clCreateCommandQueueWithProperties) POdeclsym(clCreateCommandQueueWithProperties)
POdeclsym(clSetCommandQueueProperty)
POdeclsym(clCreateFromGLBuffer) POdeclsym(clCreateFromGLBuffer)
POdeclsym(clCreateFromGLTexture) POdeclsym(clCreateFromGLTexture)
POdeclsym(clCreateFromGLTexture2D) POdeclsym(clCreateFromGLTexture2D)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment