From fcaecb85698281f5018fe8c18ec7f1b20339bd3c Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Tue, 15 Apr 2025 16:15:29 +0200 Subject: [PATCH] mesa: Enable PanVK for panfrost PACKAGECONFIG If panfrost is enabled, we currently build panfrost tools and the gallium driver. There's also a vulkan driver available for panfrost, so let's enable it as well whenever panfrost PACKAGECONFIG is enabled, similarly to how it's done for the gallium driver. PanVK is the "commercial" name for the vulkan driver for panfrost but it's enabled under the panfrost name in meson. This was "tested" with `vkgears -info` with mesa-demos from commit 11939e1697b894be3c68a89e3ea86fc51a320836 on an RK3588-based system. (From OE-Core rev: a04b7772d65e0b92330b1d35e578b5d8ae01dcef) Signed-off-by: Quentin Schulz Signed-off-by: Richard Purdie --- meta/recipes-graphics/mesa/mesa.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index fb76b5b1cc..c30253695f 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -114,6 +114,7 @@ VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',fr VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${VULKAN_DRIVERS_LLVM}', '', d)}" VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination-experimental', '', d)}" +VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers" # mesa development and testing tools support, per driver