win32u: Respect per-monitor thread dpi awareness when getting window from point.
[wine.git] / dlls / opencl / unix_thunks.c
blob9638eb2c501db6bb9f0f06f7550365e70f953b40
1 /* Automatically generated from OpenCL registry files; DO NOT EDIT! */
3 #if 0
4 #pragma makedep unix
5 #endif
7 #include "config.h"
8 #include "unix_private.h"
10 static NTSTATUS wrap_clCreateBuffer( void *args )
12 struct clCreateBuffer_params *params = args;
14 *params->__retval = clCreateBuffer( params->context, params->flags, params->size, params->host_ptr, params->errcode_ret );
15 return STATUS_SUCCESS;
18 static NTSTATUS wrap_clCreateCommandQueue( void *args )
20 struct clCreateCommandQueue_params *params = args;
22 *params->__retval = clCreateCommandQueue( params->context, params->device, params->properties, params->errcode_ret );
23 return STATUS_SUCCESS;
26 static NTSTATUS wrap_clCreateImage( void *args )
28 struct clCreateImage_params *params = args;
30 *params->__retval = clCreateImage( params->context, params->flags, params->image_format, params->image_desc, params->host_ptr, params->errcode_ret );
31 return STATUS_SUCCESS;
34 static NTSTATUS wrap_clCreateImage2D( void *args )
36 struct clCreateImage2D_params *params = args;
38 *params->__retval = clCreateImage2D( params->context, params->flags, params->image_format, params->image_width, params->image_height, params->image_row_pitch, params->host_ptr, params->errcode_ret );
39 return STATUS_SUCCESS;
42 static NTSTATUS wrap_clCreateImage3D( void *args )
44 struct clCreateImage3D_params *params = args;
46 *params->__retval = clCreateImage3D( params->context, params->flags, params->image_format, params->image_width, params->image_height, params->image_depth, params->image_row_pitch, params->image_slice_pitch, params->host_ptr, params->errcode_ret );
47 return STATUS_SUCCESS;
50 static NTSTATUS wrap_clCreateKernel( void *args )
52 struct clCreateKernel_params *params = args;
54 *params->__retval = clCreateKernel( params->program, params->kernel_name, params->errcode_ret );
55 return STATUS_SUCCESS;
58 static NTSTATUS wrap_clCreateKernelsInProgram( void *args )
60 struct clCreateKernelsInProgram_params *params = args;
62 return clCreateKernelsInProgram( params->program, params->num_kernels, params->kernels, params->num_kernels_ret );
65 static NTSTATUS wrap_clCreateProgramWithBinary( void *args )
67 struct clCreateProgramWithBinary_params *params = args;
69 *params->__retval = clCreateProgramWithBinary( params->context, params->num_devices, params->device_list, params->lengths, params->binaries, params->binary_status, params->errcode_ret );
70 return STATUS_SUCCESS;
73 static NTSTATUS wrap_clCreateProgramWithBuiltInKernels( void *args )
75 struct clCreateProgramWithBuiltInKernels_params *params = args;
77 *params->__retval = clCreateProgramWithBuiltInKernels( params->context, params->num_devices, params->device_list, params->kernel_names, params->errcode_ret );
78 return STATUS_SUCCESS;
81 static NTSTATUS wrap_clCreateProgramWithSource( void *args )
83 struct clCreateProgramWithSource_params *params = args;
85 *params->__retval = clCreateProgramWithSource( params->context, params->count, params->strings, params->lengths, params->errcode_ret );
86 return STATUS_SUCCESS;
89 static NTSTATUS wrap_clCreateSampler( void *args )
91 struct clCreateSampler_params *params = args;
93 *params->__retval = clCreateSampler( params->context, params->normalized_coords, params->addressing_mode, params->filter_mode, params->errcode_ret );
94 return STATUS_SUCCESS;
97 static NTSTATUS wrap_clCreateSubBuffer( void *args )
99 struct clCreateSubBuffer_params *params = args;
101 *params->__retval = clCreateSubBuffer( params->buffer, params->flags, params->buffer_create_type, params->buffer_create_info, params->errcode_ret );
102 return STATUS_SUCCESS;
105 static NTSTATUS wrap_clCreateSubDevices( void *args )
107 struct clCreateSubDevices_params *params = args;
109 return clCreateSubDevices( params->in_device, params->properties, params->num_devices, params->out_devices, params->num_devices_ret );
112 static NTSTATUS wrap_clCreateUserEvent( void *args )
114 struct clCreateUserEvent_params *params = args;
116 *params->__retval = clCreateUserEvent( params->context, params->errcode_ret );
117 return STATUS_SUCCESS;
120 static NTSTATUS wrap_clEnqueueBarrier( void *args )
122 struct clEnqueueBarrier_params *params = args;
124 return clEnqueueBarrier( params->command_queue );
127 static NTSTATUS wrap_clEnqueueBarrierWithWaitList( void *args )
129 struct clEnqueueBarrierWithWaitList_params *params = args;
131 return clEnqueueBarrierWithWaitList( params->command_queue, params->num_events_in_wait_list, params->event_wait_list, params->event );
134 static NTSTATUS wrap_clEnqueueCopyBuffer( void *args )
136 struct clEnqueueCopyBuffer_params *params = args;
138 return clEnqueueCopyBuffer( params->command_queue, params->src_buffer, params->dst_buffer, params->src_offset, params->dst_offset, params->size, params->num_events_in_wait_list, params->event_wait_list, params->event );
141 static NTSTATUS wrap_clEnqueueCopyBufferRect( void *args )
143 struct clEnqueueCopyBufferRect_params *params = args;
145 return clEnqueueCopyBufferRect( params->command_queue, params->src_buffer, params->dst_buffer, params->src_origin, params->dst_origin, params->region, params->src_row_pitch, params->src_slice_pitch, params->dst_row_pitch, params->dst_slice_pitch, params->num_events_in_wait_list, params->event_wait_list, params->event );
148 static NTSTATUS wrap_clEnqueueCopyBufferToImage( void *args )
150 struct clEnqueueCopyBufferToImage_params *params = args;
152 return clEnqueueCopyBufferToImage( params->command_queue, params->src_buffer, params->dst_image, params->src_offset, params->dst_origin, params->region, params->num_events_in_wait_list, params->event_wait_list, params->event );
155 static NTSTATUS wrap_clEnqueueCopyImage( void *args )
157 struct clEnqueueCopyImage_params *params = args;
159 return clEnqueueCopyImage( params->command_queue, params->src_image, params->dst_image, params->src_origin, params->dst_origin, params->region, params->num_events_in_wait_list, params->event_wait_list, params->event );
162 static NTSTATUS wrap_clEnqueueCopyImageToBuffer( void *args )
164 struct clEnqueueCopyImageToBuffer_params *params = args;
166 return clEnqueueCopyImageToBuffer( params->command_queue, params->src_image, params->dst_buffer, params->src_origin, params->region, params->dst_offset, params->num_events_in_wait_list, params->event_wait_list, params->event );
169 static NTSTATUS wrap_clEnqueueFillBuffer( void *args )
171 struct clEnqueueFillBuffer_params *params = args;
173 return clEnqueueFillBuffer( params->command_queue, params->buffer, params->pattern, params->pattern_size, params->offset, params->size, params->num_events_in_wait_list, params->event_wait_list, params->event );
176 static NTSTATUS wrap_clEnqueueFillImage( void *args )
178 struct clEnqueueFillImage_params *params = args;
180 return clEnqueueFillImage( params->command_queue, params->image, params->fill_color, params->origin, params->region, params->num_events_in_wait_list, params->event_wait_list, params->event );
183 static NTSTATUS wrap_clEnqueueMapBuffer( void *args )
185 struct clEnqueueMapBuffer_params *params = args;
187 *params->__retval = clEnqueueMapBuffer( params->command_queue, params->buffer, params->blocking_map, params->map_flags, params->offset, params->size, params->num_events_in_wait_list, params->event_wait_list, params->event, params->errcode_ret );
188 return STATUS_SUCCESS;
191 static NTSTATUS wrap_clEnqueueMapImage( void *args )
193 struct clEnqueueMapImage_params *params = args;
195 *params->__retval = clEnqueueMapImage( params->command_queue, params->image, params->blocking_map, params->map_flags, params->origin, params->region, params->image_row_pitch, params->image_slice_pitch, params->num_events_in_wait_list, params->event_wait_list, params->event, params->errcode_ret );
196 return STATUS_SUCCESS;
199 static NTSTATUS wrap_clEnqueueMarker( void *args )
201 struct clEnqueueMarker_params *params = args;
203 return clEnqueueMarker( params->command_queue, params->event );
206 static NTSTATUS wrap_clEnqueueMarkerWithWaitList( void *args )
208 struct clEnqueueMarkerWithWaitList_params *params = args;
210 return clEnqueueMarkerWithWaitList( params->command_queue, params->num_events_in_wait_list, params->event_wait_list, params->event );
213 static NTSTATUS wrap_clEnqueueMigrateMemObjects( void *args )
215 struct clEnqueueMigrateMemObjects_params *params = args;
217 return clEnqueueMigrateMemObjects( params->command_queue, params->num_mem_objects, params->mem_objects, params->flags, params->num_events_in_wait_list, params->event_wait_list, params->event );
220 static NTSTATUS wrap_clEnqueueNDRangeKernel( void *args )
222 struct clEnqueueNDRangeKernel_params *params = args;
224 return clEnqueueNDRangeKernel( params->command_queue, params->kernel, params->work_dim, params->global_work_offset, params->global_work_size, params->local_work_size, params->num_events_in_wait_list, params->event_wait_list, params->event );
227 static NTSTATUS wrap_clEnqueueReadBuffer( void *args )
229 struct clEnqueueReadBuffer_params *params = args;
231 return clEnqueueReadBuffer( params->command_queue, params->buffer, params->blocking_read, params->offset, params->size, params->ptr, params->num_events_in_wait_list, params->event_wait_list, params->event );
234 static NTSTATUS wrap_clEnqueueReadBufferRect( void *args )
236 struct clEnqueueReadBufferRect_params *params = args;
238 return clEnqueueReadBufferRect( params->command_queue, params->buffer, params->blocking_read, params->buffer_origin, params->host_origin, params->region, params->buffer_row_pitch, params->buffer_slice_pitch, params->host_row_pitch, params->host_slice_pitch, params->ptr, params->num_events_in_wait_list, params->event_wait_list, params->event );
241 static NTSTATUS wrap_clEnqueueReadImage( void *args )
243 struct clEnqueueReadImage_params *params = args;
245 return clEnqueueReadImage( params->command_queue, params->image, params->blocking_read, params->origin, params->region, params->row_pitch, params->slice_pitch, params->ptr, params->num_events_in_wait_list, params->event_wait_list, params->event );
248 static NTSTATUS wrap_clEnqueueTask( void *args )
250 struct clEnqueueTask_params *params = args;
252 return clEnqueueTask( params->command_queue, params->kernel, params->num_events_in_wait_list, params->event_wait_list, params->event );
255 static NTSTATUS wrap_clEnqueueUnmapMemObject( void *args )
257 struct clEnqueueUnmapMemObject_params *params = args;
259 return clEnqueueUnmapMemObject( params->command_queue, params->memobj, params->mapped_ptr, params->num_events_in_wait_list, params->event_wait_list, params->event );
262 static NTSTATUS wrap_clEnqueueWaitForEvents( void *args )
264 struct clEnqueueWaitForEvents_params *params = args;
266 return clEnqueueWaitForEvents( params->command_queue, params->num_events, params->event_list );
269 static NTSTATUS wrap_clEnqueueWriteBuffer( void *args )
271 struct clEnqueueWriteBuffer_params *params = args;
273 return clEnqueueWriteBuffer( params->command_queue, params->buffer, params->blocking_write, params->offset, params->size, params->ptr, params->num_events_in_wait_list, params->event_wait_list, params->event );
276 static NTSTATUS wrap_clEnqueueWriteBufferRect( void *args )
278 struct clEnqueueWriteBufferRect_params *params = args;
280 return clEnqueueWriteBufferRect( params->command_queue, params->buffer, params->blocking_write, params->buffer_origin, params->host_origin, params->region, params->buffer_row_pitch, params->buffer_slice_pitch, params->host_row_pitch, params->host_slice_pitch, params->ptr, params->num_events_in_wait_list, params->event_wait_list, params->event );
283 static NTSTATUS wrap_clEnqueueWriteImage( void *args )
285 struct clEnqueueWriteImage_params *params = args;
287 return clEnqueueWriteImage( params->command_queue, params->image, params->blocking_write, params->origin, params->region, params->input_row_pitch, params->input_slice_pitch, params->ptr, params->num_events_in_wait_list, params->event_wait_list, params->event );
290 static NTSTATUS wrap_clFinish( void *args )
292 struct clFinish_params *params = args;
294 return clFinish( params->command_queue );
297 static NTSTATUS wrap_clFlush( void *args )
299 struct clFlush_params *params = args;
301 return clFlush( params->command_queue );
304 static NTSTATUS wrap_clGetCommandQueueInfo( void *args )
306 struct clGetCommandQueueInfo_params *params = args;
308 return clGetCommandQueueInfo( params->command_queue, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
311 static NTSTATUS wrap_clGetContextInfo( void *args )
313 struct clGetContextInfo_params *params = args;
315 return clGetContextInfo( params->context, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
318 static NTSTATUS wrap_clGetDeviceIDs( void *args )
320 struct clGetDeviceIDs_params *params = args;
322 return clGetDeviceIDs( params->platform, params->device_type, params->num_entries, params->devices, params->num_devices );
325 static NTSTATUS wrap_clGetDeviceInfo( void *args )
327 struct clGetDeviceInfo_params *params = args;
329 return clGetDeviceInfo( params->device, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
332 static NTSTATUS wrap_clGetEventInfo( void *args )
334 struct clGetEventInfo_params *params = args;
336 return clGetEventInfo( params->event, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
339 static NTSTATUS wrap_clGetEventProfilingInfo( void *args )
341 struct clGetEventProfilingInfo_params *params = args;
343 return clGetEventProfilingInfo( params->event, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
346 static NTSTATUS wrap_clGetImageInfo( void *args )
348 struct clGetImageInfo_params *params = args;
350 return clGetImageInfo( params->image, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
353 static NTSTATUS wrap_clGetKernelArgInfo( void *args )
355 struct clGetKernelArgInfo_params *params = args;
357 return clGetKernelArgInfo( params->kernel, params->arg_index, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
360 static NTSTATUS wrap_clGetKernelInfo( void *args )
362 struct clGetKernelInfo_params *params = args;
364 return clGetKernelInfo( params->kernel, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
367 static NTSTATUS wrap_clGetKernelWorkGroupInfo( void *args )
369 struct clGetKernelWorkGroupInfo_params *params = args;
371 return clGetKernelWorkGroupInfo( params->kernel, params->device, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
374 static NTSTATUS wrap_clGetMemObjectInfo( void *args )
376 struct clGetMemObjectInfo_params *params = args;
378 return clGetMemObjectInfo( params->memobj, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
381 static NTSTATUS wrap_clGetPlatformIDs( void *args )
383 struct clGetPlatformIDs_params *params = args;
385 return clGetPlatformIDs( params->num_entries, params->platforms, params->num_platforms );
388 static NTSTATUS wrap_clGetPlatformInfo( void *args )
390 struct clGetPlatformInfo_params *params = args;
392 return clGetPlatformInfo( params->platform, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
395 static NTSTATUS wrap_clGetProgramBuildInfo( void *args )
397 struct clGetProgramBuildInfo_params *params = args;
399 return clGetProgramBuildInfo( params->program, params->device, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
402 static NTSTATUS wrap_clGetProgramInfo( void *args )
404 struct clGetProgramInfo_params *params = args;
406 return clGetProgramInfo( params->program, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
409 static NTSTATUS wrap_clGetSamplerInfo( void *args )
411 struct clGetSamplerInfo_params *params = args;
413 return clGetSamplerInfo( params->sampler, params->param_name, params->param_value_size, params->param_value, params->param_value_size_ret );
416 static NTSTATUS wrap_clGetSupportedImageFormats( void *args )
418 struct clGetSupportedImageFormats_params *params = args;
420 return clGetSupportedImageFormats( params->context, params->flags, params->image_type, params->num_entries, params->image_formats, params->num_image_formats );
423 static NTSTATUS wrap_clReleaseCommandQueue( void *args )
425 struct clReleaseCommandQueue_params *params = args;
427 return clReleaseCommandQueue( params->command_queue );
430 static NTSTATUS wrap_clReleaseContext( void *args )
432 struct clReleaseContext_params *params = args;
434 return clReleaseContext( params->context );
437 static NTSTATUS wrap_clReleaseDevice( void *args )
439 struct clReleaseDevice_params *params = args;
441 return clReleaseDevice( params->device );
444 static NTSTATUS wrap_clReleaseEvent( void *args )
446 struct clReleaseEvent_params *params = args;
448 return clReleaseEvent( params->event );
451 static NTSTATUS wrap_clReleaseKernel( void *args )
453 struct clReleaseKernel_params *params = args;
455 return clReleaseKernel( params->kernel );
458 static NTSTATUS wrap_clReleaseMemObject( void *args )
460 struct clReleaseMemObject_params *params = args;
462 return clReleaseMemObject( params->memobj );
465 static NTSTATUS wrap_clReleaseProgram( void *args )
467 struct clReleaseProgram_params *params = args;
469 return clReleaseProgram( params->program );
472 static NTSTATUS wrap_clReleaseSampler( void *args )
474 struct clReleaseSampler_params *params = args;
476 return clReleaseSampler( params->sampler );
479 static NTSTATUS wrap_clRetainCommandQueue( void *args )
481 struct clRetainCommandQueue_params *params = args;
483 return clRetainCommandQueue( params->command_queue );
486 static NTSTATUS wrap_clRetainContext( void *args )
488 struct clRetainContext_params *params = args;
490 return clRetainContext( params->context );
493 static NTSTATUS wrap_clRetainDevice( void *args )
495 struct clRetainDevice_params *params = args;
497 return clRetainDevice( params->device );
500 static NTSTATUS wrap_clRetainEvent( void *args )
502 struct clRetainEvent_params *params = args;
504 return clRetainEvent( params->event );
507 static NTSTATUS wrap_clRetainKernel( void *args )
509 struct clRetainKernel_params *params = args;
511 return clRetainKernel( params->kernel );
514 static NTSTATUS wrap_clRetainMemObject( void *args )
516 struct clRetainMemObject_params *params = args;
518 return clRetainMemObject( params->memobj );
521 static NTSTATUS wrap_clRetainProgram( void *args )
523 struct clRetainProgram_params *params = args;
525 return clRetainProgram( params->program );
528 static NTSTATUS wrap_clRetainSampler( void *args )
530 struct clRetainSampler_params *params = args;
532 return clRetainSampler( params->sampler );
535 static NTSTATUS wrap_clSetKernelArg( void *args )
537 struct clSetKernelArg_params *params = args;
539 return clSetKernelArg( params->kernel, params->arg_index, params->arg_size, params->arg_value );
542 static NTSTATUS wrap_clSetUserEventStatus( void *args )
544 struct clSetUserEventStatus_params *params = args;
546 return clSetUserEventStatus( params->event, params->execution_status );
549 static NTSTATUS wrap_clUnloadCompiler( void *args )
551 return clUnloadCompiler();
554 static NTSTATUS wrap_clUnloadPlatformCompiler( void *args )
556 struct clUnloadPlatformCompiler_params *params = args;
558 return clUnloadPlatformCompiler( params->platform );
561 static NTSTATUS wrap_clWaitForEvents( void *args )
563 struct clWaitForEvents_params *params = args;
565 return clWaitForEvents( params->num_events, params->event_list );
568 const unixlib_entry_t __wine_unix_call_funcs[] =
570 wrap_clBuildProgram,
571 wrap_clCompileProgram,
572 wrap_clCreateBuffer,
573 wrap_clCreateCommandQueue,
574 wrap_clCreateContext,
575 wrap_clCreateContextFromType,
576 wrap_clCreateImage,
577 wrap_clCreateImage2D,
578 wrap_clCreateImage3D,
579 wrap_clCreateKernel,
580 wrap_clCreateKernelsInProgram,
581 wrap_clCreateProgramWithBinary,
582 wrap_clCreateProgramWithBuiltInKernels,
583 wrap_clCreateProgramWithSource,
584 wrap_clCreateSampler,
585 wrap_clCreateSubBuffer,
586 wrap_clCreateSubDevices,
587 wrap_clCreateUserEvent,
588 wrap_clEnqueueBarrier,
589 wrap_clEnqueueBarrierWithWaitList,
590 wrap_clEnqueueCopyBuffer,
591 wrap_clEnqueueCopyBufferRect,
592 wrap_clEnqueueCopyBufferToImage,
593 wrap_clEnqueueCopyImage,
594 wrap_clEnqueueCopyImageToBuffer,
595 wrap_clEnqueueFillBuffer,
596 wrap_clEnqueueFillImage,
597 wrap_clEnqueueMapBuffer,
598 wrap_clEnqueueMapImage,
599 wrap_clEnqueueMarker,
600 wrap_clEnqueueMarkerWithWaitList,
601 wrap_clEnqueueMigrateMemObjects,
602 wrap_clEnqueueNDRangeKernel,
603 wrap_clEnqueueNativeKernel,
604 wrap_clEnqueueReadBuffer,
605 wrap_clEnqueueReadBufferRect,
606 wrap_clEnqueueReadImage,
607 wrap_clEnqueueTask,
608 wrap_clEnqueueUnmapMemObject,
609 wrap_clEnqueueWaitForEvents,
610 wrap_clEnqueueWriteBuffer,
611 wrap_clEnqueueWriteBufferRect,
612 wrap_clEnqueueWriteImage,
613 wrap_clFinish,
614 wrap_clFlush,
615 wrap_clGetCommandQueueInfo,
616 wrap_clGetContextInfo,
617 wrap_clGetDeviceIDs,
618 wrap_clGetDeviceInfo,
619 wrap_clGetEventInfo,
620 wrap_clGetEventProfilingInfo,
621 wrap_clGetImageInfo,
622 wrap_clGetKernelArgInfo,
623 wrap_clGetKernelInfo,
624 wrap_clGetKernelWorkGroupInfo,
625 wrap_clGetMemObjectInfo,
626 wrap_clGetPlatformIDs,
627 wrap_clGetPlatformInfo,
628 wrap_clGetProgramBuildInfo,
629 wrap_clGetProgramInfo,
630 wrap_clGetSamplerInfo,
631 wrap_clGetSupportedImageFormats,
632 wrap_clLinkProgram,
633 wrap_clReleaseCommandQueue,
634 wrap_clReleaseContext,
635 wrap_clReleaseDevice,
636 wrap_clReleaseEvent,
637 wrap_clReleaseKernel,
638 wrap_clReleaseMemObject,
639 wrap_clReleaseProgram,
640 wrap_clReleaseSampler,
641 wrap_clRetainCommandQueue,
642 wrap_clRetainContext,
643 wrap_clRetainDevice,
644 wrap_clRetainEvent,
645 wrap_clRetainKernel,
646 wrap_clRetainMemObject,
647 wrap_clRetainProgram,
648 wrap_clRetainSampler,
649 wrap_clSetEventCallback,
650 wrap_clSetKernelArg,
651 wrap_clSetMemObjectDestructorCallback,
652 wrap_clSetUserEventStatus,
653 wrap_clUnloadCompiler,
654 wrap_clUnloadPlatformCompiler,
655 wrap_clWaitForEvents,