From 0ccceecdc61ba913d7dc591432ebd3b00836b9bd Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 13 Sep 2016 17:03:24 +0200 Subject: 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. --- wscript | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 033c8f5fa2..5b07a3bda6 100644 --- a/wscript +++ b/wscript @@ -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 } ] -- cgit v1.2.3