Mesa (staging/19.1): radv: Fix vulkan build in meson.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 20 08:57:10 UTC 2019


Module: Mesa
Branch: staging/19.1
Commit: a5154fa69c043c77e8ba6d11f47dcecb30e8395c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5154fa69c043c77e8ba6d11f47dcecb30e8395c

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Wed Jun 19 15:03:43 2019 +0200

radv: Fix vulkan build in meson.

Apparently the android part was never ported to meson.

CC: <mesa-stable at lists.freedesktop.org>
Acked-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
(cherry picked from commit 4c300bd328138949659892447e7e68028cc950cb)

---

 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 3a696e46e56..2dd2a7f246e 100644
--- a/src/amd/vulkan/meson.build
+++ b/src/amd/vulkan/meson.build
@@ -129,6 +129,13 @@ if with_xlib_lease
   radv_flags += '-DVK_USE_PLATFORM_XLIB_XRANDR_EXT'
 endif
 
+if with_platform_android
+  radv_flags += [
+    '-DVK_USE_PLATFORM_ANDROID_KHR'
+  ]
+  libradv_files += files('radv_android.c')
+endif
+
 libvulkan_radeon = shared_library(
   'vulkan_radeon',
   [libradv_files, radv_entrypoints, radv_extensions_c, amd_vk_format_table_c, sha1_h, xmlpool_options_h],




More information about the mesa-commit mailing list