meson: dedup gallium-xa logic
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
parent
fa5d616bf9
commit
2f0db33527
23
meson.build
23
meson.build
|
@ -540,26 +540,21 @@ if va_drivers_path == ''
|
||||||
endif
|
endif
|
||||||
|
|
||||||
_xa = get_option('gallium-xa')
|
_xa = get_option('gallium-xa')
|
||||||
if _xa == 'auto'
|
if not system_has_kms_drm
|
||||||
if not system_has_kms_drm
|
if _xa == 'true'
|
||||||
with_gallium_xa = false
|
error('XA state tracker can only be built on unix-like OSes.')
|
||||||
elif not (with_gallium_nouveau or with_gallium_freedreno or with_gallium_i915
|
|
||||||
or with_gallium_svga)
|
|
||||||
with_gallium_xa = false
|
|
||||||
else
|
else
|
||||||
with_gallium_xa = true
|
_xa = 'false'
|
||||||
endif
|
endif
|
||||||
elif _xa == 'true'
|
elif not (with_gallium_nouveau or with_gallium_freedreno or with_gallium_i915
|
||||||
if not system_has_kms_drm
|
|
||||||
error('XA state tracker can only be built on DRM/KMS OSes.')
|
|
||||||
elif not (with_gallium_nouveau or with_gallium_freedreno or with_gallium_i915
|
|
||||||
or with_gallium_svga)
|
or with_gallium_svga)
|
||||||
|
if _xa == 'true'
|
||||||
error('XA state tracker requires at least one of the following gallium drivers: nouveau, freedreno, i915, svga.')
|
error('XA state tracker requires at least one of the following gallium drivers: nouveau, freedreno, i915, svga.')
|
||||||
|
else
|
||||||
|
_xa = 'false'
|
||||||
endif
|
endif
|
||||||
with_gallium_xa = true
|
|
||||||
else
|
|
||||||
with_gallium_xa = false
|
|
||||||
endif
|
endif
|
||||||
|
with_gallium_xa = _xa != 'false'
|
||||||
|
|
||||||
d3d_drivers_path = get_option('d3d-drivers-path')
|
d3d_drivers_path = get_option('d3d-drivers-path')
|
||||||
if d3d_drivers_path == ''
|
if d3d_drivers_path == ''
|
||||||
|
|
Loading…
Reference in New Issue