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@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7866>
This commit is contained in:
James Park 2020-11-26 18:44:46 -08:00 committed by Marge Bot
parent 0c70842232
commit 2749258368

View file

@ -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 = []