opencl: Avoid calling clSetCommandQueueProperty().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ceb72abde2
commit
ed44832c7d
|
@ -216,6 +216,9 @@ sub needs_pe_wrapper($)
|
|||
|
||||
# needs function pointer conversion
|
||||
"clGetExtensionFunctionAddress" => 1,
|
||||
|
||||
# deprecated and absent from headers
|
||||
"clSetCommandQueueProperty" => 1,
|
||||
);
|
||||
my $name = shift;
|
||||
|
||||
|
@ -244,6 +247,7 @@ sub needs_unix_function($)
|
|||
my %funcs =
|
||||
(
|
||||
"clGetExtensionFunctionAddress" => 1,
|
||||
"clSetCommandQueueProperty" => 1,
|
||||
);
|
||||
my $name = shift;
|
||||
|
||||
|
|
|
@ -360,12 +360,6 @@ cl_int WINAPI clRetainSampler( cl_sampler sampler )
|
|||
return opencl_funcs->pclRetainSampler( sampler );
|
||||
}
|
||||
|
||||
cl_int WINAPI clSetCommandQueueProperty( cl_command_queue command_queue, cl_command_queue_properties properties, cl_bool enable, cl_command_queue_properties* old_properties )
|
||||
{
|
||||
TRACE( "(%p, %s, %u, %p)\n", command_queue, wine_dbgstr_longlong(properties), enable, old_properties );
|
||||
return opencl_funcs->pclSetCommandQueueProperty( command_queue, properties, enable, old_properties );
|
||||
}
|
||||
|
||||
cl_int WINAPI clSetKernelArg( cl_kernel kernel, cl_uint arg_index, size_t arg_size, const void* arg_value )
|
||||
{
|
||||
TRACE( "(%p, %u, %Iu, %p)\n", kernel, arg_index, arg_size, arg_value );
|
||||
|
|
|
@ -118,6 +118,15 @@ void * WINAPI clGetExtensionFunctionAddress( const char *func_name )
|
|||
return ret;
|
||||
}
|
||||
|
||||
|
||||
cl_int WINAPI clSetCommandQueueProperty( cl_command_queue command_queue, cl_command_queue_properties properties,
|
||||
cl_bool enable, cl_command_queue_properties *old_properties )
|
||||
{
|
||||
FIXME( "(%p, %s, %u, %p) deprecated\n", command_queue, wine_dbgstr_longlong(properties), enable, old_properties );
|
||||
return CL_INVALID_QUEUE_PROPERTIES;
|
||||
}
|
||||
|
||||
|
||||
BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
|
||||
{
|
||||
if (reason == DLL_PROCESS_ATTACH)
|
||||
|
|
|
@ -292,11 +292,6 @@ static cl_int WINAPI wrap_clRetainSampler( cl_sampler sampler )
|
|||
return clRetainSampler( sampler );
|
||||
}
|
||||
|
||||
static cl_int WINAPI wrap_clSetCommandQueueProperty( cl_command_queue command_queue, cl_command_queue_properties properties, cl_bool enable, cl_command_queue_properties* old_properties )
|
||||
{
|
||||
return clSetCommandQueueProperty( command_queue, properties, enable, old_properties );
|
||||
}
|
||||
|
||||
static cl_int WINAPI wrap_clSetKernelArg( cl_kernel kernel, cl_uint arg_index, size_t arg_size, const void* arg_value )
|
||||
{
|
||||
return clSetKernelArg( kernel, arg_index, arg_size, arg_value );
|
||||
|
@ -375,7 +370,6 @@ const struct opencl_funcs funcs =
|
|||
wrap_clRetainMemObject,
|
||||
wrap_clRetainProgram,
|
||||
wrap_clRetainSampler,
|
||||
wrap_clSetCommandQueueProperty,
|
||||
wrap_clSetKernelArg,
|
||||
wrap_clUnloadCompiler,
|
||||
wrap_clWaitForEvents,
|
||||
|
|
|
@ -63,7 +63,6 @@ struct opencl_funcs
|
|||
cl_int (WINAPI *pclRetainMemObject)( cl_mem memobj );
|
||||
cl_int (WINAPI *pclRetainProgram)( cl_program program );
|
||||
cl_int (WINAPI *pclRetainSampler)( cl_sampler sampler );
|
||||
cl_int (WINAPI *pclSetCommandQueueProperty)( cl_command_queue command_queue, cl_command_queue_properties properties, cl_bool enable, cl_command_queue_properties* old_properties );
|
||||
cl_int (WINAPI *pclSetKernelArg)( cl_kernel kernel, cl_uint arg_index, size_t arg_size, const void* arg_value );
|
||||
cl_int (WINAPI *pclUnloadCompiler)( void );
|
||||
cl_int (WINAPI *pclWaitForEvents)( cl_uint num_events, const cl_event* event_list );
|
||||
|
|
Loading…
Reference in New Issue