Meson: ensure variable defined

A gallium driver is undefined if passing -Dgallium-drivers=''

Fixes: e0b037d697 ("meson: Build SWR driver")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
Dylan Baker 2018-01-08 17:43:45 -08:00
parent 21bca27349
commit 73ce7cb474

View File

@ -125,6 +125,7 @@ with_gallium_imx = false
with_gallium_i915 = false with_gallium_i915 = false
with_gallium_svga = false with_gallium_svga = false
with_gallium_virgl = false with_gallium_virgl = false
with_gallium_swr = false
_drivers = get_option('gallium-drivers') _drivers = get_option('gallium-drivers')
if _drivers == 'auto' if _drivers == 'auto'
if not ['darwin', 'windows'].contains(host_machine.system()) if not ['darwin', 'windows'].contains(host_machine.system())