Skip to contentSkip to conversation

package/mesa3d: fix imagination Vulkan driver build

PATCH In review Thomas Petazzoni via buildroot 1 participant 2 messages Dec 15, 2025 – Dec 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mesa3d: fix imagination Vulkan driver build

Since upstream commit 6e189ba6c17a2ab9b60e6fd65fc6a44a17dc9e8f, merged in mesa-25.3.0, the imagination Vulkan driver is no longer experimental.

Therefore, since Buildroot commit 3e296a151195f9d32dbfd62d6c75d08b822be6dd, which bumped mesa3d to version 25.3.0, the build of a configuration such as:

BR2_aarch64=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION=y

fails with:

build/mesa3d-25.3.1/meson.build:4:0: ERROR: Value "imagination-experimental" for option "vulkan-drivers" is not in allowed choices: "auto, amd, broadcom, freedreno, intel, intel_hasvk, panfrost, swrast, virtio, imagination, microsoft-experimental, nouveau, asahi, gfxstream, all"

Fix this by using the proper Vulkan driver name.

There are no autobuilder failures for this issue.

---
Note: this is not sufficient to get the above configuration to build completely, I'm working on the other fixes that are needed. But for sure this fix is needed.

 package/mesa3d/Config.in | 2 +-
 package/mesa3d/mesa3d.mk | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/mesa3d/Config.in +1 -1
index 94d88dd8db..89e40d47b1 100644
@@ -333,7 +333,7 @@ config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_BROADCOM
 	  Vulkan broadcom driver.
 
 config BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION
-	bool "Vulkan imagination driver (experimental)"
+	bool "Vulkan imagination driver"
 	depends on BR2_arm || BR2_aarch64
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 || !BR2_PACKAGE_XORG7 # libxshmfence
 	select BR2_PACKAGE_MESA3D_VULKAN_DRIVER
package/mesa3d/mesa3d.mk +1 -1
index 6fcbf96c80..36e6614124 100644
@@ -129,7 +129,7 @@ MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL)    += virgl
 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ZINK)     += zink
 # Vulkan Drivers
 MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_BROADCOM) += broadcom
-MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION) += imagination-experimental
+MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION) += imagination
 MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_INTEL)   += intel
 MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_SWRAST) += swrast
 MESA3D_VULKAN_DRIVERS-$(BR2_PACKAGE_MESA3D_VULKAN_DRIVER_VIRTIO) += virtio
Signature · 6 lines
2.52.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 17 lines · Thomas Petazzoni via buildroot

Since upstream commit 6e189ba6c17a2ab9b60e6fd65fc6a44a17dc9e8f, merged in mesa-25.3.0, the imagination Vulkan driver is no longer experimental.

Therefore, since Buildroot commit 3e296a151195f9d32dbfd62d6c75d08b822be6dd, which bumped mesa3d to version 25.3.0, the build of a configuration such as:

BR2_aarch64=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION=y

fails with:

Quoted 7 lines

build/mesa3d-25.3.1/meson.build:4:0: ERROR: Value "imagination-experimental" for option "vulkan-drivers" is not in allowed choices: "auto, amd, broadcom, freedreno, intel, intel_hasvk, panfrost, swrast, virtio, imagination, microsoft-experimental, nouveau, asahi, gfxstream, all"

Fix this by using the proper Vulkan driver name.

There are no autobuilder failures for this issue.

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot