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
060e9f76
Commit
060e9f76
authored
Jun 23, 2023
by
Giovanni Mascellani
Committed by
Alexandre Julliard
Jul 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Remove the worker event, which is now useless.
parent
287c6fe9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
swapchain.c
dlls/dxgi/swapchain.c
+0
-19
No files found.
dlls/dxgi/swapchain.c
View file @
060e9f76
...
...
@@ -1029,7 +1029,6 @@ struct d3d12_swapchain
CONDITION_VARIABLE
worker_cv
;
bool
worker_running
;
struct
list
worker_ops
;
HANDLE
worker_event
;
/* D3D12 side of the swapchain (frontend): these objects are
* visible to the IDXGISwapChain client, so they must never be
...
...
@@ -1159,9 +1158,6 @@ static DWORD WINAPI d3d12_swapchain_worker_proc(void *data)
d3d12_swapchain_op_destroy
(
swapchain
,
op
);
if
(
!
SetEvent
(
swapchain
->
worker_event
))
ERR
(
"Cannot set event, last error %ld.
\n
"
,
GetLastError
());
EnterCriticalSection
(
&
swapchain
->
worker_cs
);
}
else
if
(
!
SleepConditionVariableCS
(
&
swapchain
->
worker_cv
,
&
swapchain
->
worker_cs
,
INFINITE
))
...
...
@@ -1931,9 +1927,6 @@ static void d3d12_swapchain_destroy(struct d3d12_swapchain *swapchain)
ERR
(
"Failed to close worker thread, last error %ld.
\n
"
,
GetLastError
());
}
if
(
!
CloseHandle
(
swapchain
->
worker_event
))
ERR
(
"Failed to close worker event, last error %ld.
\n
"
,
GetLastError
());
DeleteCriticalSection
(
&
swapchain
->
worker_cs
);
LIST_FOR_EACH_ENTRY_SAFE
(
op
,
op2
,
&
swapchain
->
worker_ops
,
struct
d3d12_swapchain_op
,
entry
)
...
...
@@ -2243,8 +2236,6 @@ static HRESULT d3d12_swapchain_present(struct d3d12_swapchain *swapchain,
WakeAllConditionVariable
(
&
swapchain
->
worker_cv
);
LeaveCriticalSection
(
&
swapchain
->
worker_cs
);
WaitForSingleObject
(
swapchain
->
worker_event
,
INFINITE
);
++
swapchain
->
frame_number
;
if
((
frame_latency_event
=
swapchain
->
frame_latency_event
))
{
...
...
@@ -2523,8 +2514,6 @@ static HRESULT d3d12_swapchain_resize_buffers(struct d3d12_swapchain *swapchain,
WakeAllConditionVariable
(
&
swapchain
->
worker_cv
);
LeaveCriticalSection
(
&
swapchain
->
worker_cs
);
WaitForSingleObject
(
swapchain
->
worker_event
,
INFINITE
);
swapchain
->
current_buffer_index
=
0
;
d3d12_swapchain_destroy_d3d12_resources
(
swapchain
);
...
...
@@ -3194,14 +3183,6 @@ static HRESULT d3d12_swapchain_init(struct d3d12_swapchain *swapchain, IWineDXGI
swapchain
->
worker_running
=
true
;
list_init
(
&
swapchain
->
worker_ops
);
if
(
!
(
swapchain
->
worker_event
=
CreateEventA
(
NULL
,
FALSE
,
FALSE
,
NULL
)))
{
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
WARN
(
"Failed to create worker event, hr %#lx.
\n
"
,
hr
);
d3d12_swapchain_destroy
(
swapchain
);
return
hr
;
}
surface_desc
.
sType
=
VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR
;
surface_desc
.
pNext
=
NULL
;
surface_desc
.
flags
=
0
;
...
...
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