meson: Fix auto option for xvmc

This fixes the same problem as the previous patch did for vdpau, but for
xvmc.

Fixes: 724916c8a8
       ("meson: dedup gallium-xvmc logic")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Dylan Baker
2018-06-21 08:34:05 -07:00
parent d9a8008a93
commit a6943bb4ce

View File

@@ -438,13 +438,12 @@ elif not (with_gallium_r600 or with_gallium_nouveau)
else else
_xvmc = 'false' _xvmc = 'false'
endif endif
elif _xvmc == 'auto'
_xvmc = 'true'
endif endif
with_gallium_xvmc = _xvmc == 'true'
dep_xvmc = null_dep dep_xvmc = null_dep
if with_gallium_xvmc with_gallium_xvmc = false
dep_xvmc = dependency('xvmc', version : '>= 1.0.6') if _xmvc != 'false'
dep_xvmc = dependency('xvmc', version : '>= 1.0.6', required : _xvmc == 'true')
with_gallium_xvmc = dep_xvmc.found()
endif endif
xvmc_drivers_path = get_option('xvmc-libs-path') xvmc_drivers_path = get_option('xvmc-libs-path')