Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] mpv: va-api requires egl-drm, wayland and/or x11
@ 2016-04-28 14:33 Gustavo Zacarias
  2016-04-28 14:42 ` Thomas Petazzoni
  2016-04-28 18:34 ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2016-04-28 14:33 UTC (permalink / raw)
  To: buildroot

The VA-API acceleration requires one or more of the egl-drm, wayland
and/or x11 backends.
Since the egl-drm backend means LIBGL (X11) + EGL + DRM we'll handle it
later once the mesa3d libgl hidden knob is applied.
So for now we'll support wayland and x11 until that happens. Fixes:
http://autobuild.buildroot.net/results/4b9/4b98d0c2c0617715e77fb47b3d97037c6b7562ec/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/mpv/mpv.mk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk
index 0a13aee..fb45aef 100644
--- a/package/mpv/mpv.mk
+++ b/package/mpv/mpv.mk
@@ -179,11 +179,15 @@ MPV_CONF_OPTS += --disable-sdl1 --disable-sdl2
 endif
 
 # va-api support
+# This requires one or more of the egl-drm, wayland, x11 backends
+# For now we support wayland and x11
 ifeq ($(BR2_PACKAGE_LIBVA),y)
+ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XLIB_LIBX11),)
+MPV_CONF_OPTS += --disable-vaapi
+else
 MPV_CONF_OPTS += --enable-vaapi
 MPV_DEPENDENCIES += libva
-else
-MPV_CONF_OPTS += --disable-vaapi
+endif
 endif
 
 # wayland support
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] mpv: va-api requires egl-drm, wayland and/or x11
  2016-04-28 14:33 [Buildroot] [PATCH] mpv: va-api requires egl-drm, wayland and/or x11 Gustavo Zacarias
@ 2016-04-28 14:42 ` Thomas Petazzoni
  2016-04-28 14:51   ` Gustavo Zacarias
  2016-04-28 18:34 ` Peter Korsgaard
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2016-04-28 14:42 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 28 Apr 2016 11:33:07 -0300, Gustavo Zacarias wrote:

>  # va-api support
> +# This requires one or more of the egl-drm, wayland, x11 backends
> +# For now we support wayland and x11
>  ifeq ($(BR2_PACKAGE_LIBVA),y)
> +ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XLIB_LIBX11),)
> +MPV_CONF_OPTS += --disable-vaapi
> +else
>  MPV_CONF_OPTS += --enable-vaapi
>  MPV_DEPENDENCIES += libva
> -else

Can we make that positive logic ?

ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XLIB_LIBX11),y)
enable vaapi
else
disable vaapi
endif

or you have cases where wayland on X is used, so you have both options
set to 'y' and still want the vaapi support ?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] mpv: va-api requires egl-drm, wayland and/or x11
  2016-04-28 14:42 ` Thomas Petazzoni
@ 2016-04-28 14:51   ` Gustavo Zacarias
  0 siblings, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2016-04-28 14:51 UTC (permalink / raw)
  To: buildroot

On 28/04/16 11:42, Thomas Petazzoni wrote:

> Can we make that positive logic ?
>
> ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XLIB_LIBX11),y)
> enable vaapi
> else
> disable vaapi
> endif
>
> or you have cases where wayland on X is used, so you have both options
> set to 'y' and still want the vaapi support ?
>
> Thomas

Hi.
Unfortunately both at the same time is possible, hence why i shyed away 
of including egl-drm support without clean knobs.
If you look at the libva package it can conditionally enable xorg and/or 
wayland support.
Regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] mpv: va-api requires egl-drm, wayland and/or x11
  2016-04-28 14:33 [Buildroot] [PATCH] mpv: va-api requires egl-drm, wayland and/or x11 Gustavo Zacarias
  2016-04-28 14:42 ` Thomas Petazzoni
@ 2016-04-28 18:34 ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2016-04-28 18:34 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 > The VA-API acceleration requires one or more of the egl-drm, wayland
 > and/or x11 backends.
 > Since the egl-drm backend means LIBGL (X11) + EGL + DRM we'll handle it
 > later once the mesa3d libgl hidden knob is applied.
 > So for now we'll support wayland and x11 until that happens. Fixes:
 > http://autobuild.buildroot.net/results/4b9/4b98d0c2c0617715e77fb47b3d97037c6b7562ec/

 > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
 > ---
 >  package/mpv/mpv.mk | 8 ++++++--
 >  1 file changed, 6 insertions(+), 2 deletions(-)

 > diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk
 > index 0a13aee..fb45aef 100644
 > --- a/package/mpv/mpv.mk
 > +++ b/package/mpv/mpv.mk
 > @@ -179,11 +179,15 @@ MPV_CONF_OPTS += --disable-sdl1 --disable-sdl2
 >  endif
 
 >  # va-api support
 > +# This requires one or more of the egl-drm, wayland, x11 backends
 > +# For now we support wayland and x11
 >  ifeq ($(BR2_PACKAGE_LIBVA),y)
 > +ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XLIB_LIBX11),)
 > +MPV_CONF_OPTS += --disable-vaapi
 > +else
 >  MPV_CONF_OPTS += --enable-vaapi
 >  MPV_DEPENDENCIES += libva
 > -else
 > -MPV_CONF_OPTS += --disable-vaapi
 > +endif
 >  endif

With this we no longer pass --disable-vaapi if libva isn't enabled. I've
changed it to do that as well and inverted the wayland/libx11 test like
Thomas suggested:

ifneq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XLIB_LIBX11),)
MPV_CONF_OPTS += --enable-vaapi
..

Committed with those changes, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-28 18:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28 14:33 [Buildroot] [PATCH] mpv: va-api requires egl-drm, wayland and/or x11 Gustavo Zacarias
2016-04-28 14:42 ` Thomas Petazzoni
2016-04-28 14:51   ` Gustavo Zacarias
2016-04-28 18:34 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox