diff mbox series

[2/3] mesa.inc: enable intel raytracing support conditionally

Message ID 20260701163640.1285581-2-f_l_k@t-online.de
State New
Headers show
Series [1/3] mesa.inc: add tools support for intel | expand

Commit Message

Markus Volk July 1, 2026, 4:36 p.m. UTC
Enable intel-rt if 'libclc', 'gallium-llvm' and 'intel' are in PACKAGECONFIG

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/recipes-graphics/mesa/mesa.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 469aa789fd..f8e294076a 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -127,7 +127,8 @@  PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native"
 PACKAGECONFIG[ethosu] = ""
 PACKAGECONFIG[freedreno] = ""
 PACKAGECONFIG[imagination] = "-Dimagination-srv=true,-Dimagination-srv=false"
-PACKAGECONFIG[intel] = ""
+intel_rt_enabled = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc gallium-llvm', '-Dintel-rt=enabled', '', d)}"
+PACKAGECONFIG[intel] = "${intel_rt_enabled},-Dintel-rt=disabled"
 PACKAGECONFIG[lima] = ""
 PACKAGECONFIG[nouveau] = ""
 PACKAGECONFIG[panfrost] = ""