Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ed44832c
Commit
ed44832c
authored
Mar 18, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opencl: Avoid calling clSetCommandQueueProperty().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ceb72abd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
make_opencl
dlls/opencl/make_opencl
+4
-0
pe_thunks.c
dlls/opencl/pe_thunks.c
+0
-6
pe_wrappers.c
dlls/opencl/pe_wrappers.c
+9
-0
unix_thunks.c
dlls/opencl/unix_thunks.c
+0
-6
unixlib.h
dlls/opencl/unixlib.h
+0
-1
No files found.
dlls/opencl/make_opencl
View file @
ed44832c
...
...
@@ -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
;
...
...
dlls/opencl/pe_thunks.c
View file @
ed44832c
...
...
@@ -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
);
...
...
dlls/opencl/pe_wrappers.c
View file @
ed44832c
...
...
@@ -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
)
...
...
dlls/opencl/unix_thunks.c
View file @
ed44832c
...
...
@@ -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
,
...
...
dlls/opencl/unixlib.h
View file @
ed44832c
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment