[Mesa-dev] [PATCH 2/2] meson: Move -Dvulkan-drivers handling higher in the file
Dylan Baker
dylan at pnwbakers.com
Mon Nov 13 17:37:16 UTC 2017
Oops. I made a rebasing mistake in the GLX-XLIB series. That's my bad
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
Quoting Jason Ekstrand (2017-11-11 10:32:06)
> The window-system auto-detection code (specifically for glx) relies on
> with_any_vk being available. This fixes the Vulkan-only build. Also,
> this puts it up near the handling of -Ddri-drivers and -Dgallium-drivers
> which seems to make a bit more sense.
> ---
> meson.build | 46 +++++++++++++++++++++++-----------------------
> 1 file changed, 23 insertions(+), 23 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index e4d0e0f..e846759 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -154,6 +154,29 @@ if _drivers != ''
> with_gallium = true
> endif
>
> +with_intel_vk = false
> +with_amd_vk = false
> +with_any_vk = false
> +_vulkan_drivers = get_option('vulkan-drivers')
> +if _vulkan_drivers == 'auto'
> + if not ['darwin', 'windows'].contains(host_machine.system())
> + if host_machine.cpu_family().startswith('x86')
> + _vulkan_drivers = 'amd,intel'
> + else
> + error('Unknown architecture. Please pass -Dvulkan-drivers to set driver options. Patches gladly accepted to fix this.')
> + endif
> + else
> + # No vulkan driver supports windows or macOS currently
> + _vulkan_drivers = ''
> + endif
> +endif
> +if _vulkan_drivers != ''
> + _split = _vulkan_drivers.split(',')
> + with_intel_vk = _split.contains('intel')
> + with_amd_vk = _split.contains('amd')
> + with_any_vk = with_amd_vk or with_intel_vk
> +endif
> +
> if with_dri_swrast and with_gallium_softpipe
> error('Only one swrast provider can be built')
> endif
> @@ -285,29 +308,6 @@ if with_vulkan_icd_dir == ''
> with_vulkan_icd_dir = join_paths(get_option('datadir'), 'vulkan/icd.d')
> endif
>
> -with_intel_vk = false
> -with_amd_vk = false
> -with_any_vk = false
> -_vulkan_drivers = get_option('vulkan-drivers')
> -if _vulkan_drivers == 'auto'
> - if not ['darwin', 'windows'].contains(host_machine.system())
> - if host_machine.cpu_family().startswith('x86')
> - _vulkan_drivers = 'amd,intel'
> - else
> - error('Unknown architecture. Please pass -Dvulkan-drivers to set driver options. Patches gladly accepted to fix this.')
> - endif
> - else
> - # No vulkan driver supports windows or macOS currently
> - _vulkan_drivers = ''
> - endif
> -endif
> -if _vulkan_drivers != ''
> - _split = _vulkan_drivers.split(',')
> - with_intel_vk = _split.contains('intel')
> - with_amd_vk = _split.contains('amd')
> - with_any_vk = with_amd_vk or with_intel_vk
> -endif
> -
> with_dri2 = (with_dri or with_any_vk) and with_dri_platform == 'drm'
> with_dri3 = get_option('dri3')
> if with_dri3 == 'auto'
> --
> 2.5.0.400.gff86faf
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171113/5be6f277/attachment.sig>
More information about the mesa-dev
mailing list