]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
mesa: Enable PanVK for panfrost PACKAGECONFIG
authorQuentin Schulz <quentin.schulz@cherry.de>
Tue, 15 Apr 2025 14:15:29 +0000 (16:15 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Apr 2025 09:09:39 +0000 (10:09 +0100)
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.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/mesa/mesa.inc

index fb76b5b1ccba1b6ca84af25cd7f3156b1c73c11a..c30253695f27c84ac39a1bbb86660aa6057a751d 100644 (file)
@@ -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