Mesa (master): radv: Update build defines for Windows

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 2 11:36:37 UTC 2020


Module: Mesa
Branch: master
Commit: 274925836828c1b7d2a34d29a81f7ab537211e9f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=274925836828c1b7d2a34d29a81f7ab537211e9f

Author: James Park <jpark37 at lagfreegames.com>
Date:   Thu Nov 26 18:44:46 2020 -0800

radv: Update build defines for Windows

Add VK_USE_PLATFORM_WIN32_KHR.

Use VK_NO_PROTOTYPES to deal with __declspec(dllexport) mismatch.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7866>

---

 src/amd/vulkan/meson.build | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/amd/vulkan/meson.build b/src/amd/vulkan/meson.build
index 9d367b0c463..89f081a8350 100644
--- a/src/amd/vulkan/meson.build
+++ b/src/amd/vulkan/meson.build
@@ -153,6 +153,13 @@ if with_platform_android
   ]
 endif
 
+if with_platform_windows
+  radv_flags += [
+    '-DVK_USE_PLATFORM_WIN32_KHR',
+    '-DVK_NO_PROTOTYPES',
+  ]
+endif
+
 # When static linking LLVM, all its symbols are public API.
 # That may cause symbol collision, so explicitly demote everything.
 libvulkan_radeon_ld_args = []



More information about the mesa-commit mailing list