meson: build softpipe

This doesn't include llvmpipe.

v2: - Fix inconsistent use of with_gallium_swrast and
      with_gallium_softpipe.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Dylan Baker
2017-10-10 14:27:19 -07:00
parent 813b4b09f9
commit de24d61765
5 changed files with 101 additions and 3 deletions

View File

@@ -99,6 +99,7 @@ if _drivers != ''
_split = _drivers.split(',')
with_gallium_radeonsi = _split.contains('radeonsi')
with_gallium_nouveau = _split.contains('nouveau')
with_gallium_softpipe = _split.contains('swrast')
with_gallium = true
with_dri = true
endif
@@ -111,6 +112,10 @@ if not (with_dri or with_gallium)
with_shared_glapi = false
endif
if with_dri_swrast and with_gallium_softpipe
error('Only one swrast provider can be built')
endif
dep_libdrm_intel = []
if with_dri_i915
dep_libdrm_intel = dependency('libdrm_intel', version : '>= 2.4.75')