Meson: ensure variable defined
authorDylan Baker <dylan@pnwbakers.com>
Tue, 9 Jan 2018 01:43:45 +0000 (17:43 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 9 Jan 2018 01:43:45 +0000 (17:43 -0800)
A gallium driver is undefined if passing -Dgallium-drivers=''

Fixes: e0b037d6979b2 ("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>
meson.build

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