Skip to contentSkip to conversation

mpv: va-api requires egl-drm, wayland and/or x11

PATCH New Gustavo Zacarias 3 participants 4 messages Apr 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpv: va-api requires egl-drm, wayland and/or x11

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/

---
 package/mpv/mpv.mk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
package/mpv/mpv.mk +6 -2
index 0a13aee..fb45aef 100644
@@ -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
Signature · 1 line
2.7.3
#1 lore raw

PATCH 1/1 mpv: va-api requires egl-drm, wayland and/or x11

Hello,

package/mpv/mpv.mk MPV_CONF_OPTS += --disable-sdl1 --disable-sdl2 · line 185

Quoted 10 lines · Gustavo Zacarias
 # va-api support
package/mpv/mpv.mk +5 -1
+# 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

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 mpv: va-api requires egl-drm, wayland and/or x11

Quoted 8 lines · Thomas Petazzoni

Can we make that positive logic ?

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

Quoted 4 lines

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.

#3 lore raw

PATCH 1/1 mpv: va-api requires egl-drm, wayland and/or x11

In reply to Gustavo Zacarias
Quoted 24 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> 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/

---
 package/mpv/mpv.mk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
package/mpv/mpv.mk +2 -0
index 0a13aee..fb45aef 100644
@@ -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

package/mpv/mpv.mk MPV_CONF_OPTS += --disable-sdl1 --disable-sdl2 · line 191

Quoted 10 lines
package/mpv/mpv.mk +4 -2
 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.

Signature · 1 line
Bye, Peter Korsgaard