summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-04 00:02:21 +0100
committerwm4 <wm4@nowhere>2013-11-04 00:11:43 +0100
commit2d58fb3b8e7e87a939220f50a51294f8efdc51e1 (patch)
treefa8eae8b6a759dea1bd086834071521a8781315b /configure
parent571e697a7c557d10bcc9130915c431829981d877 (diff)
downloadmpv-2d58fb3b8e7e87a939220f50a51294f8efdc51e1.tar.bz2
mpv-2d58fb3b8e7e87a939220f50a51294f8efdc51e1.tar.xz
vo_opengl: add support for VA-API OpenGL interop
VA-API's OpenGL/GLX interop is pretty bad and perhaps slow (renders a X11 pixmap into a FBO, and has to go over X11, probably involves one or more copies), and this code serves more as an example, rather than for serious use. On the other hand, this might be work much better than vo_vaapi, even if slightly slower.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure b/configure
index a15e08bca5..35be7c75f5 100755
--- a/configure
+++ b/configure
@@ -1860,6 +1860,8 @@ echores "$_vdpau"
echocheck "VAAPI"
_vaapi_vpp=no
def_vaapi_vpp='#define CONFIG_VAAPI_VPP 0'
+_vaapi_glx=no
+def_vaapi_glx='#define CONFIG_VAAPI_GLX 0'
if test "$_vaapi" = auto && test "$_x11" = yes ; then
_vaapi=no
if test "$_dl" = yes ; then
@@ -1881,7 +1883,13 @@ if test "$_vaapi" = yes ; then
_vaapi_vpp=yes
def_vaapi_vpp='#define CONFIG_VAAPI_VPP 1'
fi
- echores "$_vaapi_vpp"
+ echores "$_vaapi_glx"
+ echocheck "VAAPI GLX"
+ if pkg_config_add 'libva-glx >= 0.32.0' ; then
+ _vaapi_glx=yes
+ def_vaapi_glx='#define CONFIG_VAAPI_GLX 1'
+ fi
+ echores "$_vaapi_glx"
fi
@@ -3297,6 +3305,7 @@ VDA = $_vda
VDA_REFCOUNTING = $_vda_refcounting
VAAPI = $_vaapi
VAAPI_VPP = $_vaapi_vpp
+VAAPI_GLX = $_vaapi_glx
WIN32 = $_win32
X11 = $_x11
WAYLAND = $_wayland
@@ -3475,6 +3484,7 @@ $def_vda
$def_vda_refcounting
$def_vaapi
$def_vaapi_vpp
+$def_vaapi_glx
$def_vm
$def_x11
$def_wayland