mirror of
https://github.com/openwrt/video.git
synced 2025-12-21 17:04:37 +04:00
mesa: setting meson opt mesa-clc to 'auto' if LLVM support disabled
mesa-clc set to 'system' requires the system tool 'mesa-clc' which gets built as part of the mesa/host build. The mesa/host build however depends on LLVM and others - hence we're trying to avoid pulling this in where possible if target configuration allows. meson option 'mesa-clc' allows for 3 options: enabled, system, auto. While 'auto' sounds like it will only automagically go for either 'enabled' or 'system', it will also disable CLC support entirely, if only drivers are enabled which don't need it (resulting in `with_clc=false`) - which is exactly what we want. This relies on only drivers being selectable, which don't automatically enable CLC - if LLVM support is disabled.
This commit is contained in:
@@ -582,7 +582,7 @@ MESON_ARGS += \
|
||||
-Dgallium-opencl=$(if $(CONFIG_MESA_USE_LLVM),standalone,disabled) \
|
||||
-Ddraw-use-llvm=$(if $(CONFIG_MESA_USE_LLVM),true,false) \
|
||||
-Dintel-clc=system \
|
||||
-Dmesa-clc=system \
|
||||
-Dmesa-clc=$(if $(CONFIG_MESA_USE_LLVM),system,auto) \
|
||||
-Dprecomp-compiler=system
|
||||
|
||||
ifeq ($(BUILD_VARIANT),amd)
|
||||
|
||||
Reference in New Issue
Block a user