diff options
author | Gurchetan Singh <gurchetansingh@google.com> | 2024-01-24 10:12:31 -0800 |
---|---|---|
committer | Gurchetan Singh <gurchetansingh@google.com> | 2024-03-05 18:20:47 -0800 |
commit | 3c8e0ccf1891d1fd58594152b49bfd17061c06ca (patch) | |
tree | ccbf0a1f47d40be024218a403dee1229a297a196 | |
parent | 1d68bf525640afcb7123fa84ef8673b705817784 (diff) | |
download | mesa3d-3c8e0ccf1891d1fd58594152b49bfd17061c06ca.tar.gz |
ANDROID: mesa: add gfxstream-experimental to -Dvulkan-drivers
Bug: 327408955
Test: compile
Change-Id: I3a15f2f996566d46a1538351e970a80eeec685ec
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | meson_options.txt | 9 | ||||
-rw-r--r-- | src/meson.build | 3 |
3 files changed, 14 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 9471276131c..4cd548a1635 100644 --- a/meson.build +++ b/meson.build @@ -254,6 +254,7 @@ with_imagination_vk = _vulkan_drivers.contains('imagination-experimental') with_imagination_srv = get_option('imagination-srv') with_microsoft_vk = _vulkan_drivers.contains('microsoft-experimental') with_nouveau_vk = _vulkan_drivers.contains('nouveau-experimental') +with_gfxstream_vk = _vulkan_drivers.contains('gfxstream-experimental') with_any_vk = _vulkan_drivers.length() != 0 with_vk_compiler = [ @@ -449,6 +450,8 @@ if not (with_dri or with_gallium or with_glx != 'disabled') with_shared_glapi = false endif +with_gfxstream_backend = get_option('gfxstream-backend') + with_gbm = get_option('gbm') \ .require(system_has_kms_drm, error_message : 'GBM only supports DRM/KMS platforms') \ .disable_auto_if(not with_dri) \ diff --git a/meson_options.txt b/meson_options.txt index 3da8e6a3350..d5884a2955c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -221,7 +221,8 @@ option( value : ['auto'], choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'intel_hasvk', 'panfrost', 'swrast', 'virtio', 'imagination-experimental', - 'microsoft-experimental', 'nouveau-experimental', 'all'], + 'microsoft-experimental', 'nouveau-experimental', + 'gfxstream-experimental', 'all'], description : 'List of vulkan drivers to build. If this is set to auto ' + 'all drivers applicable to the target OS/architecture ' + 'will be built' @@ -711,3 +712,9 @@ option ( value : 'disabled', description: 'Enable Intel Xe KMD support.' ) +option( + 'gfxstream-backend', + type : 'boolean', + value : 'false', + description : 'Build gfxstream backend' +) diff --git a/src/meson.build b/src/meson.build index 8d78c822d11..c550b93c4fc 100644 --- a/src/meson.build +++ b/src/meson.build @@ -117,6 +117,9 @@ endif if with_any_nouveau subdir('nouveau') endif +if with_gfxstream_vk or with_gfxstream_backend + subdir('gfxstream') +endif if with_gallium_asahi or with_tools.contains('asahi') subdir('asahi') endif |