[Mesa-dev] [PATCH 25/28] configure: error out if building VDPAU w/o supported platform
Nayan Deshmukh
nayan26deshmukh at gmail.com
Tue Dec 13 18:15:41 UTC 2016
On Fri, Dec 9, 2016 at 1:30 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
> configure.ac | 17 ++++++++++++++++-
> 1 file changed, 16 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 4e4e965..a4327ad 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -2095,6 +2095,18 @@ if test "x$enable_xa" = xyes; then
> fi
> AM_CONDITIONAL(HAVE_ST_XA, test "x$enable_xa" = xyes)
>
> +if echo $platforms | grep -q "x11"; then
> + have_xvmc_platform=yes
> +else
> + have_xvmc_platform=no
> +fi
> +
This is part of some other patch I guess.
Regards,
Nayan
> +if echo $platforms | grep -q "x11"; then
> + have_vdpau_platform=yes
> +else
> + have_vdpau_platform=no
> +fi
> +
> if echo $platforms | grep -q "x11\|drm"; then
> have_omx_platform=yes
> else
> @@ -2115,7 +2127,7 @@ if test -n "$with_gallium_drivers" -a "x$with_gallium_drivers" != xswrast; then
> PKG_CHECK_EXISTS([xvmc >= $XVMC_REQUIRED], [enable_xvmc=yes], [enable_xvmc=no])
> fi
>
> - if test "x$enable_vdpau" = xauto; then
> + if test "x$enable_vdpau" = xauto then -a "x$have_vdpau_platform" = xyes; then
> PKG_CHECK_EXISTS([vdpau >= $VDPAU_REQUIRED], [enable_vdpau=yes], [enable_vdpau=no])
> fi
>
> @@ -2153,6 +2165,9 @@ fi
> AM_CONDITIONAL(HAVE_ST_XVMC, test "x$enable_xvmc" = xyes)
>
> if test "x$enable_vdpau" = xyes; then
> + if test "x$have_vdpau_platform" != xyes; then
> + AC_MSG_ERROR([VDPAU requires the x11 platforms])
> + fi
> PKG_CHECK_MODULES([VDPAU], [vdpau >= $VDPAU_REQUIRED])
> gallium_st="$gallium_st vdpau"
> DEFINES="$DEFINES -DHAVE_ST_VDPAU"
> --
> 2.10.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list