meson: Guard softisp gpu acceleration with feature option: softisp-gpu
Previously it was not possible to disable gpu acceleration 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> Reviewed-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -106,6 +106,11 @@ option('rpi-awb-nn',
|
||||
value : 'auto',
|
||||
description : 'Enable the Raspberry Pi Neural Network AWB algorithm')
|
||||
|
||||
option('softisp-gpu',
|
||||
type : 'feature',
|
||||
value : 'auto',
|
||||
description : 'Enable GPU accelerated processing 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-gpu'))
|
||||
libglesv2 = dependency('glesv2', required : get_option('softisp-gpu'))
|
||||
mesa_works = cc.check_header('EGL/egl.h',
|
||||
required : get_option('softisp-gpu'),
|
||||
dependencies : libegl)
|
||||
|
||||
summary({'SoftISP GPU acceleration' : mesa_works}, section : 'Configuration')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user