From: Bernd Kuhls <bernd.kuhls@t-online.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/4] package/mpv: Add optional support for DRM/EGL-based vaapi acceleration
Date: Fri, 18 Jun 2021 21:22:37 +0200 [thread overview]
Message-ID: <20210618192237.808519-4-bernd.kuhls@t-online.de> (raw)
In-Reply-To: <20210618192237.808519-1-bernd.kuhls@t-online.de>
https://github.com/mpv-player/mpv/blob/master/wscript#L647
Runtime-tested using mesa3d iris driver on a non-x11 system.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/mpv/Config.in | 6 ++++++
package/mpv/mpv.mk | 11 +++++------
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/package/mpv/Config.in b/package/mpv/Config.in
index 812491e3a9..81b1e24b5f 100644
--- a/package/mpv/Config.in
+++ b/package/mpv/Config.in
@@ -1,3 +1,9 @@
+config BR2_PACKAGE_MPV_SUPPORTS_VAAPI
+ bool
+ default y if BR2_PACKAGE_LIBDRM && BR2_PACKAGE_MESA3D_OPENGL_EGL
+ default y if BR2_PACKAGE_WAYLAND
+ default y if BR2_PACKAGE_XORG7
+
config BR2_PACKAGE_MPV
bool "mpv"
depends on BR2_INSTALL_LIBSTDCPP # libass
diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk
index 4292abb876..d4d4d4811d 100644
--- a/package/mpv/mpv.mk
+++ b/package/mpv/mpv.mk
@@ -178,17 +178,16 @@ MPV_CONF_OPTS += --disable-rpi
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)
-ifneq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XORG7),)
+ifeq ($(BR2_PACKAGE_LIBVA)$(BR2_PACKAGE_MPV_SUPPORTS_VAAPI),yy)
MPV_CONF_OPTS += --enable-vaapi
MPV_DEPENDENCIES += libva
+ifeq ($(BR2_PACKAGE_LIBDRM),y)
+MPV_CONF_OPTS += --enable-vaapi-drm
else
-MPV_CONF_OPTS += --disable-vaapi
+MPV_CONF_OPTS += --disable-vaapi-drm
endif
else
-MPV_CONF_OPTS += --disable-vaapi
+MPV_CONF_OPTS += --disable-vaapi --disable-vaapi-drm
endif
# wayland support
--
2.30.2
next prev parent reply other threads:[~2021-06-18 19:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-18 19:22 [Buildroot] [PATCH 1/4] package/mpv: fix reproducible build issues Bernd Kuhls
2021-06-18 19:22 ` [Buildroot] [PATCH 2/4] package/mpv: Add optional support for OpenGLES Bernd Kuhls
2021-06-18 19:22 ` [Buildroot] [PATCH 3/4] package/mpv: Add optional support for OpenGL DRM EGL Backend Bernd Kuhls
2021-06-18 19:22 ` Bernd Kuhls [this message]
2021-07-18 21:33 ` [Buildroot] [PATCH 1/4] package/mpv: fix reproducible build issues Thomas Petazzoni
2021-08-04 13:43 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210618192237.808519-4-bernd.kuhls@t-online.de \
--to=bernd.kuhls@t-online.de \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.