diff options
author | wm4 <wm4@nowhere> | 2016-09-13 17:03:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-13 18:26:06 +0200 |
commit | 0ccceecdc61ba913d7dc591432ebd3b00836b9bd (patch) | |
tree | f234e994d6d89f17ea32a86b8432466dc170745b /wscript | |
parent | 6dc9280b580835d37fa8a8664b6bc142254ce1a1 (diff) | |
download | mpv-0ccceecdc61ba913d7dc591432ebd3b00836b9bd.tar.bz2 mpv-0ccceecdc61ba913d7dc591432ebd3b00836b9bd.tar.xz |
vo_opengl: mali fbdev support
Minimal support just for testing.
Only the window surface creation (including size determination) is
really platform specific, so this could be some generic thing with
platform-specific support as some sort of sub-driver, but on the other
hand I don't see much of a need for such a thing.
While most of the fbdev usage is done by the EGL driver, using this
fbdev ioctl is apparently the only way to get the display resolution.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -822,11 +822,22 @@ video_output_features = [ 'deps': ['any-gl'], 'deps_any': [ 'libmpv-shared', 'libmpv-static' ], 'func': check_true, - } , { + }, { + 'name': '--mali-fbdev', + 'desc': 'MALI via Linux fbdev', + 'deps': ['standard-gl', 'libdl'], + 'func': compose_checks( + check_cc(lib="EGL"), + check_cc(lib="GLESv2"), + check_statement('EGL/fbdev_window.h', 'struct fbdev_window test'), + check_statement('linux/fb.h', 'struct fb_var_screeninfo test'), + ), + }, { 'name': '--gl', 'desc': 'OpenGL video outputs', 'deps_any': [ 'gl-cocoa', 'gl-x11', 'egl-x11', 'egl-drm', - 'gl-win32', 'gl-wayland', 'rpi', 'plain-gl' ], + 'gl-win32', 'gl-wayland', 'rpi', 'mali-fbdev', + 'plain-gl' ], 'func': check_true, 'req': True, 'fmsg': "Unable to find OpenGL header files for video output. " + @@ -835,7 +846,7 @@ video_output_features = [ }, { 'name': 'egl-helpers', 'desc': 'EGL helper functions', - 'deps_any': [ 'egl-x11' ], + 'deps_any': [ 'egl-x11', 'mali-fbdev' ], 'func': check_true } ] |