Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0522fcd4
Commit
0522fcd4
authored
Jun 14, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx10: Add ID3DX10ThreadPump:ProcessDeviceWorkItems implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
parent
731bffa0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
async.c
dlls/d3dx10_43/async.c
+28
-2
No files found.
dlls/d3dx10_43/async.c
View file @
0522fcd4
...
...
@@ -790,8 +790,34 @@ static HRESULT WINAPI thread_pump_WaitForAllItems(ID3DX10ThreadPump *iface)
static
HRESULT
WINAPI
thread_pump_ProcessDeviceWorkItems
(
ID3DX10ThreadPump
*
iface
,
UINT
count
)
{
FIXME
(
"iface %p, count %u stub!
\n
"
,
iface
,
count
);
return
E_NOTIMPL
;
struct
thread_pump
*
thread_pump
=
impl_from_ID3DX10ThreadPump
(
iface
);
struct
work_item
*
work_item
;
HRESULT
hr
;
UINT
i
;
TRACE
(
"iface %p, count %u.
\n
"
,
iface
,
count
);
for
(
i
=
0
;
i
<
count
;
++
i
)
{
AcquireSRWLockExclusive
(
&
thread_pump
->
device_lock
);
if
(
!
thread_pump
->
device_count
)
{
ReleaseSRWLockExclusive
(
&
thread_pump
->
device_lock
);
break
;
}
--
thread_pump
->
device_count
;
work_item
=
LIST_ENTRY
(
list_head
(
&
thread_pump
->
device_queue
),
struct
work_item
,
entry
);
list_remove
(
&
work_item
->
entry
);
ReleaseSRWLockExclusive
(
&
thread_pump
->
device_lock
);
hr
=
ID3DX10DataProcessor_CreateDeviceObject
(
work_item
->
processor
,
work_item
->
object
);
if
(
work_item
->
result
)
*
work_item
->
result
=
hr
;
work_item_free
(
work_item
,
FALSE
);
}
return
S_OK
;
}
static
HRESULT
WINAPI
thread_pump_PurgeAllItems
(
ID3DX10ThreadPump
*
iface
)
...
...
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