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
64914849
Commit
64914849
authored
Feb 21, 2024
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Use handle map for memory objects.
parent
84e46207
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
vulkan.c
dlls/winevulkan/vulkan.c
+2
-0
vulkan_private.h
dlls/winevulkan/vulkan_private.h
+2
-0
No files found.
dlls/winevulkan/vulkan.c
View file @
64914849
...
...
@@ -1703,6 +1703,7 @@ VkResult wine_vkAllocateMemory(VkDevice handle, const VkMemoryAllocateInfo *allo
return
result
;
}
WINE_VK_ADD_NON_DISPATCHABLE_MAPPING
(
device
->
phys_dev
->
instance
,
memory
,
memory
->
host_memory
,
memory
);
memory
->
vm_map
=
mapping
;
*
ret
=
(
VkDeviceMemory
)(
uintptr_t
)
memory
;
return
VK_SUCCESS
;
...
...
@@ -1717,6 +1718,7 @@ void wine_vkFreeMemory(VkDevice handle, VkDeviceMemory memory_handle, const VkAl
return
;
memory
=
wine_device_memory_from_handle
(
memory_handle
);
WINE_VK_REMOVE_HANDLE_MAPPING
(
device
->
phys_dev
->
instance
,
memory
);
device
->
funcs
.
p_vkFreeMemory
(
device
->
host_device
,
memory
->
host_memory
,
NULL
);
if
(
memory
->
vm_map
)
...
...
dlls/winevulkan/vulkan_private.h
View file @
64914849
...
...
@@ -176,6 +176,8 @@ struct wine_device_memory
{
VkDeviceMemory
host_memory
;
void
*
vm_map
;
struct
wine_vk_mapping
mapping
;
};
static
inline
struct
wine_device_memory
*
wine_device_memory_from_handle
(
VkDeviceMemory
handle
)
...
...
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