Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e6e7976d
Commit
e6e7976d
authored
Jun 01, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Jun 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Introduce WINE_VK_HOST to explicitly request 'host' Vulkan headers.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a77b93c4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
7 deletions
+15
-7
d3d12_main.c
dlls/d3d12/d3d12_main.c
+1
-1
swapchain.c
dlls/dxgi/swapchain.c
+1
-2
make_vulkan
dlls/winevulkan/make_vulkan
+6
-1
vulkan.c
dlls/winex11.drv/vulkan.c
+1
-2
vulkan.h
include/wine/vulkan.h
+6
-1
No files found.
dlls/d3d12/d3d12_main.c
View file @
e6e7976d
...
...
@@ -23,7 +23,7 @@
#define VK_NO_PROTOTYPES
#define VKD3D_NO_VULKAN_H
#define VKD3D_NO_WIN32_TYPES
#define WINE_VK_
ALIGN(x)
#define WINE_VK_
HOST
#include "wine/debug.h"
#include "wine/heap.h"
...
...
dlls/dxgi/swapchain.c
View file @
e6e7976d
...
...
@@ -24,11 +24,10 @@
#ifdef SONAME_LIBVKD3D
#define VK_NO_PROTOTYPES
#define VKAPI_CALL
#define VKD3D_NO_PROTOTYPES
#define VKD3D_NO_VULKAN_H
#define VKD3D_NO_WIN32_TYPES
#define WINE_VK_
ALIGN(x)
#define WINE_VK_
HOST
#include "wine/library.h"
#include "wine/vulkan.h"
#include "wine/vulkan_driver.h"
...
...
dlls/winevulkan/make_vulkan
View file @
e6e7976d
...
...
@@ -2009,6 +2009,12 @@ class VkGenerator(object):
f
.
write
(
"#include <windef.h>
\n
"
)
f
.
write
(
"#include <stdint.h>
\n\n
"
)
f
.
write
(
"/* Define WINE_VK_HOST to get 'host' headers. */
\n
"
)
f
.
write
(
"#ifdef WINE_VK_HOST
\n
"
)
f
.
write
(
"#define VKAPI_CALL
\n
"
)
f
.
write
(
'#define WINE_VK_ALIGN(x)
\n
'
)
f
.
write
(
"#endif
\n\n
"
)
f
.
write
(
"#ifndef VKAPI_CALL
\n
"
)
f
.
write
(
"#define VKAPI_CALL __stdcall
\n
"
)
f
.
write
(
"#endif
\n\n
"
)
...
...
@@ -2017,7 +2023,6 @@ class VkGenerator(object):
f
.
write
(
"#define VKAPI_PTR VKAPI_CALL
\n
"
)
f
.
write
(
"#endif
\n\n
"
)
f
.
write
(
"/* Callers can override WINE_VK_ALIGN if they want 'host' headers. */
\n
"
)
f
.
write
(
"#ifndef WINE_VK_ALIGN
\n
"
)
f
.
write
(
"#define WINE_VK_ALIGN DECLSPEC_ALIGN
\n
"
)
f
.
write
(
"#endif
\n\n
"
)
...
...
dlls/winex11.drv/vulkan.c
View file @
e6e7976d
...
...
@@ -31,9 +31,8 @@
#include "wine/library.h"
#include "x11drv.h"
/* We only want host compatible structures and don't need alignment. */
#define WINE_VK_ALIGN(x)
#define VK_NO_PROTOTYPES
#define WINE_VK_HOST
#include "wine/vulkan.h"
#include "wine/vulkan_driver.h"
...
...
include/wine/vulkan.h
View file @
e6e7976d
...
...
@@ -6,6 +6,12 @@
#include <windef.h>
#include <stdint.h>
/* Define WINE_VK_HOST to get 'host' headers. */
#ifdef WINE_VK_HOST
#define VKAPI_CALL
#define WINE_VK_ALIGN(x)
#endif
#ifndef VKAPI_CALL
#define VKAPI_CALL __stdcall
#endif
...
...
@@ -14,7 +20,6 @@
#define VKAPI_PTR VKAPI_CALL
#endif
/* Callers can override WINE_VK_ALIGN if they want 'host' headers. */
#ifndef WINE_VK_ALIGN
#define WINE_VK_ALIGN DECLSPEC_ALIGN
#endif
...
...
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