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
c3769732
Commit
c3769732
authored
Nov 03, 2022
by
Georg Lehmann
Committed by
Alexandre Julliard
Nov 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: VkDeviceAddress needs alignment.
parent
b04d0915
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
27 deletions
+27
-27
loader_thunks.h
dlls/winevulkan/loader_thunks.h
+6
-6
make_vulkan
dlls/winevulkan/make_vulkan
+1
-1
vulkan.h
include/wine/vulkan.h
+20
-20
No files found.
dlls/winevulkan/loader_thunks.h
View file @
c3769732
...
...
@@ -1051,7 +1051,7 @@ struct vkCmdCopyImageToBuffer2KHR_params
struct
vkCmdCopyMemoryIndirectNV_params
{
VkCommandBuffer
commandBuffer
;
VkDeviceAddress
copyBufferAddress
;
VkDeviceAddress
DECLSPEC_ALIGN
(
8
)
copyBufferAddress
;
uint32_t
copyCount
;
uint32_t
stride
;
};
...
...
@@ -1065,7 +1065,7 @@ struct vkCmdCopyMemoryToAccelerationStructureKHR_params
struct
vkCmdCopyMemoryToImageIndirectNV_params
{
VkCommandBuffer
commandBuffer
;
VkDeviceAddress
copyBufferAddress
;
VkDeviceAddress
DECLSPEC_ALIGN
(
8
)
copyBufferAddress
;
uint32_t
copyCount
;
uint32_t
stride
;
VkImage
DECLSPEC_ALIGN
(
8
)
dstImage
;
...
...
@@ -1129,8 +1129,8 @@ struct vkCmdDebugMarkerInsertEXT_params
struct
vkCmdDecompressMemoryIndirectCountNV_params
{
VkCommandBuffer
commandBuffer
;
VkDeviceAddress
indirectCommandsAddress
;
VkDeviceAddress
indirectCommandsCountAddress
;
VkDeviceAddress
DECLSPEC_ALIGN
(
8
)
indirectCommandsAddress
;
VkDeviceAddress
DECLSPEC_ALIGN
(
8
)
indirectCommandsCountAddress
;
uint32_t
stride
;
};
...
...
@@ -2209,7 +2209,7 @@ struct vkCmdSubpassShadingHUAWEI_params
struct
vkCmdTraceRaysIndirect2KHR_params
{
VkCommandBuffer
commandBuffer
;
VkDeviceAddress
indirectDeviceAddress
;
VkDeviceAddress
DECLSPEC_ALIGN
(
8
)
indirectDeviceAddress
;
};
struct
vkCmdTraceRaysIndirectKHR_params
...
...
@@ -2219,7 +2219,7 @@ struct vkCmdTraceRaysIndirectKHR_params
const
VkStridedDeviceAddressRegionKHR
*
pMissShaderBindingTable
;
const
VkStridedDeviceAddressRegionKHR
*
pHitShaderBindingTable
;
const
VkStridedDeviceAddressRegionKHR
*
pCallableShaderBindingTable
;
VkDeviceAddress
indirectDeviceAddress
;
VkDeviceAddress
DECLSPEC_ALIGN
(
8
)
indirectDeviceAddress
;
};
struct
vkCmdTraceRaysKHR_params
...
...
dlls/winevulkan/make_vulkan
View file @
c3769732
...
...
@@ -1176,7 +1176,7 @@ class VkVariable(object):
return
False
elif
self
.
type
==
"size_t"
:
return
False
elif
self
.
type
in
[
"uint64_t"
,
"VkDeviceSize"
]:
elif
self
.
type
in
[
"uint64_t"
,
"VkDevice
Address"
,
"VkDevice
Size"
]:
return
True
elif
self
.
is_struct
():
return
self
.
struct
.
needs_alignment
()
...
...
include/wine/vulkan.h
View file @
c3769732
...
...
@@ -4695,7 +4695,7 @@ typedef struct VkAccelerationStructureCreateInfoKHR
VkDeviceSize
WINE_VK_ALIGN
(
8
)
offset
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
size
;
VkAccelerationStructureTypeKHR
type
;
VkDeviceAddress
deviceAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
deviceAddress
;
}
VkAccelerationStructureCreateInfoKHR
;
typedef
struct
VkAccelerationStructureDeviceAddressInfoKHR
...
...
@@ -4910,7 +4910,7 @@ typedef VkBindImagePlaneMemoryInfo VkBindImagePlaneMemoryInfoKHR;
typedef
struct
VkBindIndexBufferIndirectCommandNV
{
VkDeviceAddress
bufferAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
bufferAddress
;
uint32_t
size
;
VkIndexType
indexType
;
}
VkBindIndexBufferIndirectCommandNV
;
...
...
@@ -4922,7 +4922,7 @@ typedef struct VkBindShaderGroupIndirectCommandNV
typedef
struct
VkBindVertexBufferIndirectCommandNV
{
VkDeviceAddress
bufferAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
bufferAddress
;
uint32_t
size
;
uint32_t
stride
;
}
VkBindVertexBufferIndirectCommandNV
;
...
...
@@ -4960,7 +4960,7 @@ typedef struct VkBufferDeviceAddressCreateInfoEXT
{
VkStructureType
sType
;
const
void
*
pNext
;
VkDeviceAddress
deviceAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
deviceAddress
;
}
VkBufferDeviceAddressCreateInfoEXT
;
typedef
struct
VkBufferDeviceAddressInfo
...
...
@@ -5245,8 +5245,8 @@ typedef struct VkCopyDescriptorSet
typedef
struct
VkCopyMemoryIndirectCommandNV
{
VkDeviceAddress
srcAddress
;
VkDeviceAddress
dstAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
srcAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
dstAddress
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
size
;
}
VkCopyMemoryIndirectCommandNV
;
...
...
@@ -5371,8 +5371,8 @@ typedef struct VkDebugUtilsObjectTagInfoEXT
typedef
struct
VkDecompressMemoryRegionNV
{
VkDeviceAddress
srcAddress
;
VkDeviceAddress
dstAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
srcAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
dstAddress
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
compressedSize
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
decompressedSize
;
VkMemoryDecompressionMethodFlagsNV
decompressionMethod
;
...
...
@@ -5521,7 +5521,7 @@ typedef struct VkDeviceAddressBindingCallbackDataEXT
VkStructureType
sType
;
void
*
pNext
;
VkDeviceAddressBindingFlagsEXT
flags
;
VkDeviceAddress
baseAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
baseAddress
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
size
;
VkDeviceAddressBindingTypeEXT
bindingType
;
}
VkDeviceAddressBindingCallbackDataEXT
;
...
...
@@ -5544,7 +5544,7 @@ typedef struct VkDeviceDiagnosticsConfigCreateInfoNV
typedef
struct
VkDeviceFaultAddressInfoEXT
{
VkDeviceFaultAddressTypeEXT
addressType
;
VkDeviceAddress
reportedAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
reportedAddress
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
addressPrecision
;
}
VkDeviceFaultAddressInfoEXT
;
...
...
@@ -5657,13 +5657,13 @@ typedef struct VkDeviceMemoryOverallocationCreateInfoAMD
typedef
union
VkDeviceOrHostAddressConstKHR
{
VkDeviceAddress
deviceAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
deviceAddress
;
const
void
*
hostAddress
;
}
VkDeviceOrHostAddressConstKHR
;
typedef
union
VkDeviceOrHostAddressKHR
{
VkDeviceAddress
deviceAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
deviceAddress
;
void
*
hostAddress
;
}
VkDeviceOrHostAddressKHR
;
...
...
@@ -6123,7 +6123,7 @@ typedef struct VkImageViewAddressPropertiesNVX
{
VkStructureType
sType
;
void
*
pNext
;
VkDeviceAddress
deviceAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
deviceAddress
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
size
;
}
VkImageViewAddressPropertiesNVX
;
...
...
@@ -6386,7 +6386,7 @@ typedef struct VkMicromapCreateInfoEXT
VkDeviceSize
WINE_VK_ALIGN
(
8
)
offset
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
size
;
VkMicromapTypeEXT
type
;
VkDeviceAddress
deviceAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
deviceAddress
;
}
VkMicromapCreateInfoEXT
;
typedef
struct
VkMicromapTriangleEXT
...
...
@@ -9870,7 +9870,7 @@ typedef struct VkStencilOpState
typedef
struct
VkStridedDeviceAddressRegionKHR
{
VkDeviceAddress
deviceAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
deviceAddress
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
stride
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
size
;
}
VkStridedDeviceAddressRegionKHR
;
...
...
@@ -10115,15 +10115,15 @@ typedef VkTimelineSemaphoreSubmitInfo VkTimelineSemaphoreSubmitInfoKHR;
typedef
struct
VkTraceRaysIndirectCommand2KHR
{
VkDeviceAddress
raygenShaderRecordAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
raygenShaderRecordAddress
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
raygenShaderRecordSize
;
VkDeviceAddress
missShaderBindingTableAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
missShaderBindingTableAddress
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
missShaderBindingTableSize
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
missShaderBindingTableStride
;
VkDeviceAddress
hitShaderBindingTableAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
hitShaderBindingTableAddress
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
hitShaderBindingTableSize
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
hitShaderBindingTableStride
;
VkDeviceAddress
callableShaderBindingTableAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
callableShaderBindingTableAddress
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
callableShaderBindingTableSize
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
callableShaderBindingTableStride
;
uint32_t
width
;
...
...
@@ -10490,7 +10490,7 @@ typedef struct VkCopyMemoryToAccelerationStructureInfoKHR
typedef
struct
VkCopyMemoryToImageIndirectCommandNV
{
VkDeviceAddress
srcAddress
;
VkDeviceAddress
WINE_VK_ALIGN
(
8
)
srcAddress
;
uint32_t
bufferRowLength
;
uint32_t
bufferImageHeight
;
VkImageSubresourceLayers
imageSubresource
;
...
...
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