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
6380d57c
Commit
6380d57c
authored
Apr 03, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Apr 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Support VK_NO_PROTOTYPES in our Vulkan header.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fa255673
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
13 deletions
+12
-13
vulkan.c
dlls/vulkan-1/vulkan.c
+1
-0
make_vulkan
dlls/winevulkan/make_vulkan
+2
-5
vulkan.c
dlls/winevulkan/vulkan.c
+0
-4
vulkan_private.h
dlls/winevulkan/vulkan_private.h
+6
-0
vulkan_thunks.c
dlls/winevulkan/vulkan_thunks.c
+0
-4
vulkan.c
dlls/winex11.drv/vulkan.c
+1
-0
vulkan.h
include/wine/vulkan.h
+2
-0
No files found.
dlls/vulkan-1/vulkan.c
View file @
6380d57c
...
...
@@ -23,6 +23,7 @@
#include "winbase.h"
#include "wine/debug.h"
#define VK_NO_PROTOTYPES
#include "wine/vulkan.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
vulkan
);
...
...
dlls/winevulkan/make_vulkan
View file @
6380d57c
...
...
@@ -1792,10 +1792,6 @@ class VkGenerator(object):
f
.
write
(
"#include
\"
config.h
\"\n
"
)
f
.
write
(
"#include
\"
wine/port.h
\"\n\n
"
)
f
.
write
(
"#include
\"
wine/debug.h
\"\n
"
)
f
.
write
(
"#include
\"
wine/heap.h
\"\n
"
)
f
.
write
(
"#include
\"
wine/vulkan.h
\"\n
"
)
f
.
write
(
"#include
\"
wine/vulkan_driver.h
\"\n
"
)
f
.
write
(
"#include
\"
vulkan_private.h
\"\n\n
"
)
f
.
write
(
"WINE_DEFAULT_DEBUG_CHANNEL(vulkan);
\n\n
"
)
...
...
@@ -2071,6 +2067,7 @@ class VkGenerator(object):
LOGGER
.
debug
(
"Generating struct: {0}"
.
format
(
struct
.
name
))
f
.
write
(
struct
.
definition
(
align
=
True
))
f
.
write
(
"#ifndef VK_NO_PROTOTYPES
\n
"
)
for
func
in
self
.
registry
.
funcs
.
values
():
if
not
func
.
is_required
():
LOGGER
.
debug
(
"Skipping API definition for: {0}"
.
format
(
func
.
name
))
...
...
@@ -2078,7 +2075,7 @@ class VkGenerator(object):
LOGGER
.
debug
(
"Generating API definition for: {0}"
.
format
(
func
.
name
))
f
.
write
(
"{0};
\n
"
.
format
(
func
.
prototype
(
call_conv
=
"VKAPI_CALL"
)))
f
.
write
(
"
\n
"
)
f
.
write
(
"
#endif /* VK_NO_PROTOTYPES */
\n
\n
"
)
f
.
write
(
"#endif /* __WINE_VULKAN_H */
\n
"
)
...
...
dlls/winevulkan/vulkan.c
View file @
6380d57c
...
...
@@ -23,10 +23,6 @@
#include "winbase.h"
#include "winuser.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/vulkan.h"
#include "wine/vulkan_driver.h"
#include "vulkan_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
vulkan
);
...
...
dlls/winevulkan/vulkan_private.h
View file @
6380d57c
...
...
@@ -25,6 +25,12 @@
#define USE_STRUCT_CONVERSION
#endif
#include "wine/debug.h"
#include "wine/heap.h"
#define VK_NO_PROTOTYPES
#include "wine/vulkan.h"
#include "wine/vulkan_driver.h"
#include "vulkan_thunks.h"
/* Magic value defined by Vulkan ICD / Loader spec */
...
...
dlls/winevulkan/vulkan_thunks.c
View file @
6380d57c
...
...
@@ -3,10 +3,6 @@
#include "config.h"
#include "wine/port.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/vulkan.h"
#include "wine/vulkan_driver.h"
#include "vulkan_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
vulkan
);
...
...
dlls/winex11.drv/vulkan.c
View file @
6380d57c
...
...
@@ -33,6 +33,7 @@
/* We only want host compatible structures and don't need alignment. */
#define WINE_VK_ALIGN(x)
#define VK_NO_PROTOTYPES
#include "wine/vulkan.h"
#include "wine/vulkan_driver.h"
...
...
include/wine/vulkan.h
View file @
6380d57c
...
...
@@ -2617,6 +2617,7 @@ typedef struct VkPhysicalDeviceProperties2KHR
VkPhysicalDeviceProperties
WINE_VK_ALIGN
(
8
)
properties
;
}
VkPhysicalDeviceProperties2KHR
;
#ifndef VK_NO_PROTOTYPES
VkResult
VKAPI_CALL
vkAcquireNextImageKHR
(
VkDevice
device
,
VkSwapchainKHR
swapchain
,
uint64_t
timeout
,
VkSemaphore
semaphore
,
VkFence
fence
,
uint32_t
*
pImageIndex
);
VkResult
VKAPI_CALL
vkAllocateCommandBuffers
(
VkDevice
device
,
const
VkCommandBufferAllocateInfo
*
pAllocateInfo
,
VkCommandBuffer
*
pCommandBuffers
);
VkResult
VKAPI_CALL
vkAllocateDescriptorSets
(
VkDevice
device
,
const
VkDescriptorSetAllocateInfo
*
pAllocateInfo
,
VkDescriptorSet
*
pDescriptorSets
);
...
...
@@ -2783,5 +2784,6 @@ void VKAPI_CALL vkUnmapMemory(VkDevice device, VkDeviceMemory memory);
void
VKAPI_CALL
vkUpdateDescriptorSetWithTemplateKHR
(
VkDevice
device
,
VkDescriptorSet
descriptorSet
,
VkDescriptorUpdateTemplateKHR
descriptorUpdateTemplate
,
const
void
*
pData
);
void
VKAPI_CALL
vkUpdateDescriptorSets
(
VkDevice
device
,
uint32_t
descriptorWriteCount
,
const
VkWriteDescriptorSet
*
pDescriptorWrites
,
uint32_t
descriptorCopyCount
,
const
VkCopyDescriptorSet
*
pDescriptorCopies
);
VkResult
VKAPI_CALL
vkWaitForFences
(
VkDevice
device
,
uint32_t
fenceCount
,
const
VkFence
*
pFences
,
VkBool32
waitAll
,
uint64_t
timeout
);
#endif
/* VK_NO_PROTOTYPES */
#endif
/* __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