diff mbox series

[3/3] mesa: add missing libdrm dependency for vulkan drivers

Message ID 20260326-mesa-libdrm-imagination-v1-3-fe018f03be6a@cherry.de
State Under Review
Headers show
Series mesa: fix build for panfrost tools, imagination Vulkan driver and Vulkan-only build | expand

Commit Message

Quentin Schulz March 26, 2026, 11:05 a.m. UTC
From: Quentin Schulz <quentin.schulz@cherry.de>

Mesa explicitly requires libdrm for any Vulkan driver, see

https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.0.2/meson.build?ref_type=tags#L1774
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.0.2/meson.build?ref_type=tags#L636
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-26.0.2/meson.build?ref_type=tags#L300

but until now we haven't had the dependency when building only Vulkan
drivers. It was brought in by the gallium PACKAGECONFIG, which is by
default in mesa and mesa-gl recipes' PACKAGECONFIG but nothing forbids
us from removing it if we only need Vulkan drivers for some reason.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
 meta/recipes-graphics/mesa/mesa.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index cc4937ae97..f985e9a676 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -144,7 +144,7 @@  VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'panfrost libclc', ',pa
 VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${VULKAN_DRIVERS_SWRAST}', '', d)}"
 VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'virtio', '${VULKAN_DRIVERS_VIRTIO}', '', d)}"
 
-PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers"
+PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers libdrm"
 PACKAGECONFIG[vulkan-beta] = "-Dvulkan-beta=true,-Dvulkan-beta=false"
 
 # mesa development and testing tools support, per driver