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
c13f91c7
Commit
c13f91c7
authored
Nov 02, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Pass direction to needs_conversion helpers.
Instead of using pre-calculated heuristics.
parent
f8ecbed3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
make_vulkan
dlls/winevulkan/make_vulkan
+0
-0
vulkan_thunks.c
dlls/winevulkan/vulkan_thunks.c
+42
-0
No files found.
dlls/winevulkan/make_vulkan
View file @
c13f91c7
This diff is collapsed.
Click to expand it.
dlls/winevulkan/vulkan_thunks.c
View file @
c13f91c7
...
...
@@ -1549,6 +1549,19 @@ static inline void convert_VkAccelerationStructureBuildSizesInfoKHR_win32_to_hos
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkAccelerationStructureBuildSizesInfoKHR_host_to_win32
(
const
VkAccelerationStructureBuildSizesInfoKHR_host
*
in
,
VkAccelerationStructureBuildSizesInfoKHR
*
out
)
{
if
(
!
in
)
return
;
out
->
sType
=
in
->
sType
;
out
->
pNext
=
in
->
pNext
;
out
->
accelerationStructureSize
=
in
->
accelerationStructureSize
;
out
->
updateScratchSize
=
in
->
updateScratchSize
;
out
->
buildScratchSize
=
in
->
buildScratchSize
;
}
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkAccelerationStructureDeviceAddressInfoKHR_win32_to_host
(
const
VkAccelerationStructureDeviceAddressInfoKHR
*
in
,
VkAccelerationStructureDeviceAddressInfoKHR_host
*
out
)
{
if
(
!
in
)
return
;
...
...
@@ -1708,6 +1721,19 @@ static inline void convert_VkDeviceFaultCountsEXT_win32_to_host(const VkDeviceFa
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkDeviceFaultCountsEXT_host_to_win32
(
const
VkDeviceFaultCountsEXT_host
*
in
,
VkDeviceFaultCountsEXT
*
out
)
{
if
(
!
in
)
return
;
out
->
sType
=
in
->
sType
;
out
->
pNext
=
in
->
pNext
;
out
->
addressInfoCount
=
in
->
addressInfoCount
;
out
->
vendorInfoCount
=
in
->
vendorInfoCount
;
out
->
vendorBinarySize
=
in
->
vendorBinarySize
;
}
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
VkDeviceFaultAddressInfoEXT_host
*
convert_VkDeviceFaultAddressInfoEXT_array_win32_to_host
(
struct
conversion_context
*
ctx
,
const
VkDeviceFaultAddressInfoEXT
*
in
,
uint32_t
count
)
{
VkDeviceFaultAddressInfoEXT_host
*
out
;
...
...
@@ -1924,6 +1950,19 @@ static inline void convert_VkMicromapBuildSizesInfoEXT_win32_to_host(const VkMic
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkMicromapBuildSizesInfoEXT_host_to_win32
(
const
VkMicromapBuildSizesInfoEXT_host
*
in
,
VkMicromapBuildSizesInfoEXT
*
out
)
{
if
(
!
in
)
return
;
out
->
sType
=
in
->
sType
;
out
->
pNext
=
in
->
pNext
;
out
->
micromapSize
=
in
->
micromapSize
;
out
->
buildScratchSize
=
in
->
buildScratchSize
;
out
->
discardable
=
in
->
discardable
;
}
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkImageFormatProperties_host_to_win32
(
const
VkImageFormatProperties_host
*
in
,
VkImageFormatProperties
*
out
)
{
if
(
!
in
)
return
;
...
...
@@ -14744,6 +14783,7 @@ static NTSTATUS thunk32_vkGetAccelerationStructureBuildSizesKHR(void *args)
convert_VkAccelerationStructureBuildGeometryInfoKHR_win32_to_host
(
params
->
pBuildInfo
,
&
pBuildInfo_host
);
convert_VkAccelerationStructureBuildSizesInfoKHR_win32_to_host
(
params
->
pSizeInfo
,
&
pSizeInfo_host
);
wine_device_from_handle
(
params
->
device
)
->
funcs
.
p_vkGetAccelerationStructureBuildSizesKHR
(
wine_device_from_handle
(
params
->
device
)
->
device
,
params
->
buildType
,
&
pBuildInfo_host
,
params
->
pMaxPrimitiveCounts
,
&
pSizeInfo_host
);
convert_VkAccelerationStructureBuildSizesInfoKHR_host_to_win32
(
&
pSizeInfo_host
,
params
->
pSizeInfo
);
return
STATUS_SUCCESS
;
}
...
...
@@ -15369,6 +15409,7 @@ static NTSTATUS thunk32_vkGetDeviceFaultInfoEXT(void *args)
convert_VkDeviceFaultCountsEXT_win32_to_host
(
params
->
pFaultCounts
,
&
pFaultCounts_host
);
convert_VkDeviceFaultInfoEXT_win32_to_host
(
&
ctx
,
params
->
pFaultInfo
,
&
pFaultInfo_host
);
params
->
result
=
wine_device_from_handle
(
params
->
device
)
->
funcs
.
p_vkGetDeviceFaultInfoEXT
(
wine_device_from_handle
(
params
->
device
)
->
device
,
&
pFaultCounts_host
,
&
pFaultInfo_host
);
convert_VkDeviceFaultCountsEXT_host_to_win32
(
&
pFaultCounts_host
,
params
->
pFaultCounts
);
free_conversion_context
(
&
ctx
);
return
STATUS_SUCCESS
;
}
...
...
@@ -16252,6 +16293,7 @@ static NTSTATUS thunk32_vkGetMicromapBuildSizesEXT(void *args)
convert_VkMicromapBuildInfoEXT_win32_to_host
(
params
->
pBuildInfo
,
&
pBuildInfo_host
);
convert_VkMicromapBuildSizesInfoEXT_win32_to_host
(
params
->
pSizeInfo
,
&
pSizeInfo_host
);
wine_device_from_handle
(
params
->
device
)
->
funcs
.
p_vkGetMicromapBuildSizesEXT
(
wine_device_from_handle
(
params
->
device
)
->
device
,
params
->
buildType
,
&
pBuildInfo_host
,
&
pSizeInfo_host
);
convert_VkMicromapBuildSizesInfoEXT_host_to_win32
(
&
pSizeInfo_host
,
params
->
pSizeInfo
);
return
STATUS_SUCCESS
;
}
...
...
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