summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorrr- <mkurczew@gmail.com>2015-11-07 19:06:57 +0100
committerwm4 <wm4@nowhere>2015-11-08 15:00:15 +0100
commitc3f2ef5491dc28d1f2f68d024b4be01c27b029e7 (patch)
tree9dcab5a7b2cbc594c35860fde5d91683f415a1f8 /TOOLS
parent67caea357c23443cf583ad401a38bbaae19e3df8 (diff)
downloadmpv-c3f2ef5491dc28d1f2f68d024b4be01c27b029e7.tar.bz2
mpv-c3f2ef5491dc28d1f2f68d024b4be01c27b029e7.tar.xz
vo_opengl: add DRM EGL backend
Notes: - Unfortunately the only way to talk to EGL from within DRM I could find involves linking with GBM (generic buffer management for Mesa.) Because of this, I'm pretty sure it won't work with proprietary NVidia drivers, but then again, last time I checked NVidia didn't offer proper screen resolution for VT. - VT switching doesn't seem to work at all. It's worth mentioning that using vo_drm before introduction of VT switcher had an anomaly where user could switch to another VT and input text to it, while video played on top of that VT. However, that isn't the case with drm_egl: I can't switch to other VT during playback like this. This makes me think that it's either a limitation coming from my firmware or from EGL/KMS itself rather than a bug with my code. Nonetheless, I still left (untestable) VT switching code in place, in case it's useful to someone else. - The mode_id, connector_id and device_path should be configurable for power users and people who wish to watch videos on nonprimary screen. Unfortunately I didn't see anything that would allow OpenGL backends to register their own set of options. At the same time, adding them to global namespace is pointless. - A few dozens of lines could be shared with vo_drm (setting up VT switching, most of code behind page flipping). I don't have any strong opinion on this. - Sometimes I get minor visual glitches. I'm not sure if there's a race condition of some sort, unitialized variable (doubtful), or if it's buggy driver. (I'm using integrated Intel HD Graphics 4400 with Mesa) - .config and .control are very minimal. Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/old-configure1
1 files changed, 1 insertions, 0 deletions
diff --git a/TOOLS/old-configure b/TOOLS/old-configure
index a4d3cee0cb..8c2f73aaa9 100755
--- a/TOOLS/old-configure
+++ b/TOOLS/old-configure
@@ -970,6 +970,7 @@ cat > $TMPC << EOF
#define HAVE_RPI_GLES 0
#define HAVE_AV_PIX_FMT_MMAL 0
#define HAVE_DRM 0
+#define HAVE_EGL_DRM 0
#define HAVE_VIDEOTOOLBOX_HWACCEL 0
#define HAVE_VIDEOTOOLBOX_GL 0
#define HAVE_SSE4_INTRINSICS 1