From: Quentin Schulz Date: Thu, 26 Mar 2026 11:05:50 +0000 (+0100) Subject: mesa: fix building imagination Vulkan driver X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf443571444c98bcf7d5daeaa310e01b0ca6e199;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git mesa: fix building imagination Vulkan driver The imagination Vulkan driver requires a precomp-compiler from mesa-tools-native since we've decoupled libclc from target mesa in commit ac5e0160df78 ("mesa: depend on mesa-tools-native for less expensive libclc dependency"). This is achieved by building the imagination precomp-compiler tool in mesa-tools-native and making use of it via the libclc PACKAGECONFIG for the Vulkan driver such that mesa-tools-native dependency (and its imagination precomp-compiler) are brought in. Fixes: ac5e0160df78 ("mesa: depend on mesa-tools-native for less expensive libclc dependency") Reported-by: Ernest Van Hoecke Signed-off-by: Quentin Schulz Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-graphics/mesa/mesa-tools-native.bb b/meta/recipes-graphics/mesa/mesa-tools-native.bb index 50d2f5cbb0..0fff6ef1dd 100644 --- a/meta/recipes-graphics/mesa/mesa-tools-native.bb +++ b/meta/recipes-graphics/mesa/mesa-tools-native.bb @@ -3,7 +3,7 @@ inherit_defer native SUMMARY += " (tools only)" -PACKAGECONFIG = "tools asahi panfrost" +PACKAGECONFIG = "tools asahi imagination panfrost" # llvm required for libclc PACKAGECONFIG += "gallium-llvm" # Doesn't compile without wayland-scanner if PLATFORMS has wayland in, and, diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index fb5eef9038..1e4355770b 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -137,7 +137,7 @@ VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'asahi libclc gallium-l VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'virtio', ',gfxstream', '', d)}" -VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination', '', d)}" +VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'imagination libclc', ',imagination', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc gallium-llvm', ',intel', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',intel_hasvk', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'panfrost libclc', ',panfrost', '', d)}"