Commit 379d3752 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

opencl: Do not prepend "wine_" to export names.

parent 08032c78
...@@ -59,7 +59,7 @@ sub generate_pe_thunk($$) ...@@ -59,7 +59,7 @@ sub generate_pe_thunk($$)
my $trace_call_arg = ""; my $trace_call_arg = "";
my $trace_arg = ""; my $trace_arg = "";
my $ret = get_func_proto( "%s WINAPI wine_%s(%s)", $name, $func_ref ); my $ret = get_func_proto( "%s WINAPI %s(%s)", $name, $func_ref );
foreach my $arg (@{$func_ref->[1]}) foreach my $arg (@{$func_ref->[1]})
{ {
my $ptype = get_arg_type( $arg ); my $ptype = get_arg_type( $arg );
...@@ -198,7 +198,7 @@ sub generate_spec_entry($$) ...@@ -198,7 +198,7 @@ sub generate_spec_entry($$)
} }
} }
$args = substr($args,1,-1); $args = substr($args,1,-1);
return "@ stdcall $_($args) wine_$_"; return "@ stdcall $_($args)";
} }
my %core_functions; my %core_functions;
......
@ stdcall clBuildProgram(ptr long ptr ptr ptr ptr) wine_clBuildProgram @ stdcall clBuildProgram(ptr long ptr ptr ptr ptr)
@ stdcall clCreateBuffer(ptr int64 long ptr ptr) wine_clCreateBuffer @ stdcall clCreateBuffer(ptr int64 long ptr ptr)
@ stdcall clCreateCommandQueue(ptr ptr int64 ptr) wine_clCreateCommandQueue @ stdcall clCreateCommandQueue(ptr ptr int64 ptr)
@ stdcall clCreateContext(ptr long ptr ptr ptr ptr) wine_clCreateContext @ stdcall clCreateContext(ptr long ptr ptr ptr ptr)
@ stdcall clCreateContextFromType(ptr int64 ptr ptr ptr) wine_clCreateContextFromType @ stdcall clCreateContextFromType(ptr int64 ptr ptr ptr)
@ stdcall clCreateImage2D(ptr int64 ptr long long long ptr ptr) wine_clCreateImage2D @ stdcall clCreateImage2D(ptr int64 ptr long long long ptr ptr)
@ stdcall clCreateImage3D(ptr int64 ptr long long long long long ptr ptr) wine_clCreateImage3D @ stdcall clCreateImage3D(ptr int64 ptr long long long long long ptr ptr)
@ stdcall clCreateKernel(ptr ptr ptr) wine_clCreateKernel @ stdcall clCreateKernel(ptr ptr ptr)
@ stdcall clCreateKernelsInProgram(ptr long ptr ptr) wine_clCreateKernelsInProgram @ stdcall clCreateKernelsInProgram(ptr long ptr ptr)
@ stdcall clCreateProgramWithBinary(ptr long ptr ptr ptr ptr ptr) wine_clCreateProgramWithBinary @ stdcall clCreateProgramWithBinary(ptr long ptr ptr ptr ptr ptr)
@ stdcall clCreateProgramWithSource(ptr long ptr ptr ptr) wine_clCreateProgramWithSource @ stdcall clCreateProgramWithSource(ptr long ptr ptr ptr)
@ stdcall clCreateSampler(ptr long long long ptr) wine_clCreateSampler @ stdcall clCreateSampler(ptr long long long ptr)
@ stdcall clEnqueueBarrier(ptr) wine_clEnqueueBarrier @ stdcall clEnqueueBarrier(ptr)
@ stdcall clEnqueueCopyBuffer(ptr ptr ptr long long long long ptr ptr) wine_clEnqueueCopyBuffer @ stdcall clEnqueueCopyBuffer(ptr ptr ptr long long long long ptr ptr)
@ stdcall clEnqueueCopyBufferToImage(ptr ptr ptr long ptr ptr long ptr ptr) wine_clEnqueueCopyBufferToImage @ stdcall clEnqueueCopyBufferToImage(ptr ptr ptr long ptr ptr long ptr ptr)
@ stdcall clEnqueueCopyImage(ptr ptr ptr ptr ptr ptr long ptr ptr) wine_clEnqueueCopyImage @ stdcall clEnqueueCopyImage(ptr ptr ptr ptr ptr ptr long ptr ptr)
@ stdcall clEnqueueCopyImageToBuffer(ptr ptr ptr ptr ptr long long ptr ptr) wine_clEnqueueCopyImageToBuffer @ stdcall clEnqueueCopyImageToBuffer(ptr ptr ptr ptr ptr long long ptr ptr)
@ stdcall clEnqueueMapBuffer(ptr ptr long int64 long long long ptr ptr ptr) wine_clEnqueueMapBuffer @ stdcall clEnqueueMapBuffer(ptr ptr long int64 long long long ptr ptr ptr)
@ stdcall clEnqueueMapImage(ptr ptr long int64 ptr ptr ptr ptr long ptr ptr ptr) wine_clEnqueueMapImage @ stdcall clEnqueueMapImage(ptr ptr long int64 ptr ptr ptr ptr long ptr ptr ptr)
@ stdcall clEnqueueMarker(ptr ptr) wine_clEnqueueMarker @ stdcall clEnqueueMarker(ptr ptr)
@ stdcall clEnqueueNDRangeKernel(ptr ptr long ptr ptr ptr long ptr ptr) wine_clEnqueueNDRangeKernel @ stdcall clEnqueueNDRangeKernel(ptr ptr long ptr ptr ptr long ptr ptr)
@ stdcall clEnqueueNativeKernel(ptr ptr ptr long long ptr ptr long ptr ptr) wine_clEnqueueNativeKernel @ stdcall clEnqueueNativeKernel(ptr ptr ptr long long ptr ptr long ptr ptr)
@ stdcall clEnqueueReadBuffer(ptr ptr long long long ptr long ptr ptr) wine_clEnqueueReadBuffer @ stdcall clEnqueueReadBuffer(ptr ptr long long long ptr long ptr ptr)
@ stdcall clEnqueueReadImage(ptr ptr long ptr ptr long long ptr long ptr ptr) wine_clEnqueueReadImage @ stdcall clEnqueueReadImage(ptr ptr long ptr ptr long long ptr long ptr ptr)
@ stdcall clEnqueueTask(ptr ptr long ptr ptr) wine_clEnqueueTask @ stdcall clEnqueueTask(ptr ptr long ptr ptr)
@ stdcall clEnqueueUnmapMemObject(ptr ptr ptr long ptr ptr) wine_clEnqueueUnmapMemObject @ stdcall clEnqueueUnmapMemObject(ptr ptr ptr long ptr ptr)
@ stdcall clEnqueueWaitForEvents(ptr long ptr) wine_clEnqueueWaitForEvents @ stdcall clEnqueueWaitForEvents(ptr long ptr)
@ stdcall clEnqueueWriteBuffer(ptr ptr long long long ptr long ptr ptr) wine_clEnqueueWriteBuffer @ stdcall clEnqueueWriteBuffer(ptr ptr long long long ptr long ptr ptr)
@ stdcall clEnqueueWriteImage(ptr ptr long ptr ptr long long ptr long ptr ptr) wine_clEnqueueWriteImage @ stdcall clEnqueueWriteImage(ptr ptr long ptr ptr long long ptr long ptr ptr)
@ stdcall clFinish(ptr) wine_clFinish @ stdcall clFinish(ptr)
@ stdcall clFlush(ptr) wine_clFlush @ stdcall clFlush(ptr)
@ stdcall clGetCommandQueueInfo(ptr long long ptr ptr) wine_clGetCommandQueueInfo @ stdcall clGetCommandQueueInfo(ptr long long ptr ptr)
@ stdcall clGetContextInfo(ptr long long ptr ptr) wine_clGetContextInfo @ stdcall clGetContextInfo(ptr long long ptr ptr)
@ stdcall clGetDeviceIDs(ptr int64 long ptr ptr) wine_clGetDeviceIDs @ stdcall clGetDeviceIDs(ptr int64 long ptr ptr)
@ stdcall clGetDeviceInfo(ptr long long ptr ptr) wine_clGetDeviceInfo @ stdcall clGetDeviceInfo(ptr long long ptr ptr)
@ stdcall clGetEventInfo(ptr long long ptr ptr) wine_clGetEventInfo @ stdcall clGetEventInfo(ptr long long ptr ptr)
@ stdcall clGetEventProfilingInfo(ptr long long ptr ptr) wine_clGetEventProfilingInfo @ stdcall clGetEventProfilingInfo(ptr long long ptr ptr)
@ stdcall clGetExtensionFunctionAddress(ptr) wine_clGetExtensionFunctionAddress @ stdcall clGetExtensionFunctionAddress(ptr)
@ stdcall clGetImageInfo(ptr long long ptr ptr) wine_clGetImageInfo @ stdcall clGetImageInfo(ptr long long ptr ptr)
@ stdcall clGetKernelInfo(ptr long long ptr ptr) wine_clGetKernelInfo @ stdcall clGetKernelInfo(ptr long long ptr ptr)
@ stdcall clGetKernelWorkGroupInfo(ptr ptr long long ptr ptr) wine_clGetKernelWorkGroupInfo @ stdcall clGetKernelWorkGroupInfo(ptr ptr long long ptr ptr)
@ stdcall clGetMemObjectInfo(ptr long long ptr ptr) wine_clGetMemObjectInfo @ stdcall clGetMemObjectInfo(ptr long long ptr ptr)
@ stdcall clGetPlatformIDs(long ptr ptr) wine_clGetPlatformIDs @ stdcall clGetPlatformIDs(long ptr ptr)
@ stdcall clGetPlatformInfo(ptr long long ptr ptr) wine_clGetPlatformInfo @ stdcall clGetPlatformInfo(ptr long long ptr ptr)
@ stdcall clGetProgramBuildInfo(ptr ptr long long ptr ptr) wine_clGetProgramBuildInfo @ stdcall clGetProgramBuildInfo(ptr ptr long long ptr ptr)
@ stdcall clGetProgramInfo(ptr long long ptr ptr) wine_clGetProgramInfo @ stdcall clGetProgramInfo(ptr long long ptr ptr)
@ stdcall clGetSamplerInfo(ptr long long ptr ptr) wine_clGetSamplerInfo @ stdcall clGetSamplerInfo(ptr long long ptr ptr)
@ stdcall clGetSupportedImageFormats(ptr int64 long long ptr ptr) wine_clGetSupportedImageFormats @ stdcall clGetSupportedImageFormats(ptr int64 long long ptr ptr)
@ stdcall clReleaseCommandQueue(ptr) wine_clReleaseCommandQueue @ stdcall clReleaseCommandQueue(ptr)
@ stdcall clReleaseContext(ptr) wine_clReleaseContext @ stdcall clReleaseContext(ptr)
@ stdcall clReleaseEvent(ptr) wine_clReleaseEvent @ stdcall clReleaseEvent(ptr)
@ stdcall clReleaseKernel(ptr) wine_clReleaseKernel @ stdcall clReleaseKernel(ptr)
@ stdcall clReleaseMemObject(ptr) wine_clReleaseMemObject @ stdcall clReleaseMemObject(ptr)
@ stdcall clReleaseProgram(ptr) wine_clReleaseProgram @ stdcall clReleaseProgram(ptr)
@ stdcall clReleaseSampler(ptr) wine_clReleaseSampler @ stdcall clReleaseSampler(ptr)
@ stdcall clRetainCommandQueue(ptr) wine_clRetainCommandQueue @ stdcall clRetainCommandQueue(ptr)
@ stdcall clRetainContext(ptr) wine_clRetainContext @ stdcall clRetainContext(ptr)
@ stdcall clRetainEvent(ptr) wine_clRetainEvent @ stdcall clRetainEvent(ptr)
@ stdcall clRetainKernel(ptr) wine_clRetainKernel @ stdcall clRetainKernel(ptr)
@ stdcall clRetainMemObject(ptr) wine_clRetainMemObject @ stdcall clRetainMemObject(ptr)
@ stdcall clRetainProgram(ptr) wine_clRetainProgram @ stdcall clRetainProgram(ptr)
@ stdcall clRetainSampler(ptr) wine_clRetainSampler @ stdcall clRetainSampler(ptr)
@ stdcall clSetCommandQueueProperty(ptr int64 long ptr) wine_clSetCommandQueueProperty @ stdcall clSetCommandQueueProperty(ptr int64 long ptr)
@ stdcall clSetKernelArg(ptr long long ptr) wine_clSetKernelArg @ stdcall clSetKernelArg(ptr long long ptr)
@ stdcall clUnloadCompiler() wine_clUnloadCompiler @ stdcall clUnloadCompiler()
@ stdcall clWaitForEvents(long ptr) wine_clWaitForEvents @ stdcall clWaitForEvents(long ptr)
...@@ -26,8 +26,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(opencl); ...@@ -26,8 +26,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(opencl);
const struct opencl_funcs *opencl_funcs = NULL; const struct opencl_funcs *opencl_funcs = NULL;
cl_int WINAPI wine_clGetPlatformInfo(cl_platform_id platform, cl_platform_info param_name, cl_int WINAPI clGetPlatformInfo( cl_platform_id platform, cl_platform_info param_name,
SIZE_T param_value_size, void * param_value, size_t * param_value_size_ret) SIZE_T param_value_size, void * param_value, size_t * param_value_size_ret )
{ {
cl_int ret; cl_int ret;
TRACE("(%p, 0x%x, %ld, %p, %p)\n", platform, param_name, param_value_size, param_value, param_value_size_ret); TRACE("(%p, 0x%x, %ld, %p, %p)\n", platform, param_name, param_value_size, param_value, param_value_size_ret);
...@@ -62,8 +62,8 @@ cl_int WINAPI wine_clGetPlatformInfo(cl_platform_id platform, cl_platform_info p ...@@ -62,8 +62,8 @@ cl_int WINAPI wine_clGetPlatformInfo(cl_platform_id platform, cl_platform_info p
} }
cl_int WINAPI wine_clGetDeviceInfo(cl_device_id device, cl_device_info param_name, cl_int WINAPI clGetDeviceInfo( cl_device_id device, cl_device_info param_name,
SIZE_T param_value_size, void * param_value, size_t * param_value_size_ret) SIZE_T param_value_size, void * param_value, size_t * param_value_size_ret )
{ {
cl_int ret; cl_int ret;
TRACE("(%p, 0x%x, %ld, %p, %p)\n",device, param_name, param_value_size, param_value, param_value_size_ret); TRACE("(%p, 0x%x, %ld, %p, %p)\n",device, param_name, param_value_size, param_value, param_value_size_ret);
...@@ -105,7 +105,7 @@ cl_int WINAPI wine_clGetDeviceInfo(cl_device_id device, cl_device_info param_nam ...@@ -105,7 +105,7 @@ cl_int WINAPI wine_clGetDeviceInfo(cl_device_id device, cl_device_info param_nam
} }
void * WINAPI wine_clGetExtensionFunctionAddress(const char * func_name) void * WINAPI clGetExtensionFunctionAddress( const char *func_name )
{ {
void * ret = 0; void * ret = 0;
TRACE("(%s)\n",func_name); TRACE("(%s)\n",func_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment