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
187e4d7e
Commit
187e4d7e
authored
Apr 16, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Don't use heap.h.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9e34b8b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
vulkan.c
dlls/winevulkan/vulkan.c
+8
-6
vulkan_private.h
dlls/winevulkan/vulkan_private.h
+0
-1
No files found.
dlls/winevulkan/vulkan.c
View file @
187e4d7e
...
...
@@ -26,6 +26,7 @@
#include "winbase.h"
#include "winreg.h"
#include "winuser.h"
#include "winternl.h"
#include "vulkan_private.h"
...
...
@@ -140,7 +141,8 @@ static VkBool32 debug_utils_callback_conversion(VkDebugUtilsMessageSeverityFlagB
wine_callback_data
=
*
((
VkDebugUtilsMessengerCallbackDataEXT
*
)
callback_data
);
object_name_infos
=
heap_calloc
(
wine_callback_data
.
objectCount
,
sizeof
(
*
object_name_infos
));
object_name_infos
=
RtlAllocateHeap
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
wine_callback_data
.
objectCount
*
sizeof
(
*
object_name_infos
));
for
(
i
=
0
;
i
<
wine_callback_data
.
objectCount
;
i
++
)
{
...
...
@@ -155,7 +157,7 @@ static VkBool32 debug_utils_callback_conversion(VkDebugUtilsMessageSeverityFlagB
if
(
!
object_name_infos
[
i
].
objectHandle
)
{
WARN
(
"handle conversion failed 0x%s
\n
"
,
wine_dbgstr_longlong
(
callback_data
->
pObjects
[
i
].
objectHandle
));
heap_free
(
object_name_infos
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
object_name_infos
);
return
VK_FALSE
;
}
}
...
...
@@ -170,7 +172,7 @@ static VkBool32 debug_utils_callback_conversion(VkDebugUtilsMessageSeverityFlagB
/* applications should always return VK_FALSE */
result
=
object
->
user_callback
(
severity
,
message_types
,
&
wine_callback_data
,
object
->
user_data
);
heap_free
(
object_name_infos
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
object_name_infos
);
return
result
;
}
...
...
@@ -714,7 +716,7 @@ void WINAPI unix_vkCmdExecuteCommands(VkCommandBuffer buffer, uint32_t count,
* alloca as we shouldn't need much memory and it needs to be cleaned up after
* the call anyway.
*/
if
(
!
(
tmp_buffers
=
heap_
alloc
(
count
*
sizeof
(
*
tmp_buffers
))))
if
(
!
(
tmp_buffers
=
m
alloc
(
count
*
sizeof
(
*
tmp_buffers
))))
{
ERR
(
"Failed to allocate memory for temporary command buffers
\n
"
);
return
;
...
...
@@ -1397,7 +1399,7 @@ VkResult WINAPI unix_vkGetCalibratedTimestampsEXT(VkDevice device,
VkResult
res
;
TRACE
(
"%p, %u, %p, %p, %p
\n
"
,
device
,
timestamp_count
,
timestamp_infos
,
timestamps
,
max_deviation
);
if
(
!
(
host_timestamp_infos
=
heap_
alloc
(
sizeof
(
VkCalibratedTimestampInfoEXT
)
*
timestamp_count
)))
if
(
!
(
host_timestamp_infos
=
m
alloc
(
sizeof
(
VkCalibratedTimestampInfoEXT
)
*
timestamp_count
)))
return
VK_ERROR_OUT_OF_HOST_MEMORY
;
for
(
i
=
0
;
i
<
timestamp_count
;
i
++
)
...
...
@@ -1438,7 +1440,7 @@ VkResult WINAPI unix_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(VkPhysicalDe
if
(
res
!=
VK_SUCCESS
)
return
res
;
if
(
!
(
host_time_domains
=
heap_
alloc
(
sizeof
(
VkTimeDomainEXT
)
*
host_time_domain_count
)))
if
(
!
(
host_time_domains
=
m
alloc
(
sizeof
(
VkTimeDomainEXT
)
*
host_time_domain_count
)))
return
VK_ERROR_OUT_OF_HOST_MEMORY
;
res
=
phys_dev
->
instance
->
funcs
.
p_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT
(
phys_dev
->
phys_dev
,
&
host_time_domain_count
,
host_time_domains
);
...
...
dlls/winevulkan/vulkan_private.h
View file @
187e4d7e
...
...
@@ -28,7 +28,6 @@
#include <pthread.h>
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/list.h"
#define VK_NO_PROTOTYPES
#include "wine/vulkan.h"
...
...
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