@@ -81,6 +81,11 @@ option('rpi-awb-nn',
value : 'auto',
description : 'Enable the Raspberry Pi Neural Network AWB algorithm')
+option('softisp-debayer-egl',
+ type : 'feature',
+ value : 'auto',
+ description : 'Enable OpenGL ES based debayering in the software ISP')
+
option('test',
type : 'boolean',
value : false,
@@ -7,9 +7,11 @@ if not softisp_enabled
subdir_done()
endif
-libegl = dependency('egl', required : false)
-libglesv2 = dependency('glesv2', required : false)
-mesa_works = cc.check_header('EGL/egl.h', required : false, dependencies : libegl)
+libegl = dependency('egl', required : get_option('softisp-debayer-egl'))
+libglesv2 = dependency('glesv2', required : get_option('softisp-debayer-egl'))
+mesa_works = cc.check_header('EGL/egl.h',
+ required : get_option('softisp-debayer-egl'),
+ dependencies : libegl)
summary({'SoftISP GPU acceleration' : mesa_works}, section : 'Configuration')
Previously it was not possible to disable egl debayering if every dependency was discovered by meson. Fix that by adding a new option. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> --- meson_options.txt | 5 +++++ src/libcamera/software_isp/meson.build | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-)