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
7d066631
Commit
7d066631
authored
Apr 16, 2020
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Flush non-coherent memory ranges in adapter_vk_unmap_bo_address().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
66f71443
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
adapter_vk.c
dlls/wined3d/adapter_vk.c
+17
-0
No files found.
dlls/wined3d/adapter_vk.c
View file @
7d066631
...
...
@@ -556,13 +556,30 @@ static void adapter_vk_unmap_bo_address(struct wined3d_context *context, const s
{
const
struct
wined3d_vk_info
*
vk_info
;
struct
wined3d_device_vk
*
device_vk
;
VkMappedMemoryRange
range
;
struct
wined3d_bo_vk
*
bo
;
unsigned
int
i
;
if
(
!
(
bo
=
(
struct
wined3d_bo_vk
*
)
data
->
buffer_object
))
return
;
vk_info
=
wined3d_context_vk
(
context
)
->
vk_info
;
device_vk
=
wined3d_device_vk
(
context
->
device
);
if
(
!
(
bo
->
memory_type
&
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
))
{
range
.
sType
=
VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE
;
range
.
pNext
=
NULL
;
range
.
memory
=
bo
->
vk_memory
;
for
(
i
=
0
;
i
<
range_count
;
++
i
)
{
range
.
offset
=
ranges
[
i
].
offset
;
range
.
size
=
ranges
[
i
].
size
;
VK_CALL
(
vkFlushMappedMemoryRanges
(
device_vk
->
vk_device
,
1
,
&
range
));
}
}
VK_CALL
(
vkUnmapMemory
(
device_vk
->
vk_device
,
bo
->
vk_memory
));
}
...
...
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