Skip to contentSkip to conversation

package/mesa3d: restrict Gallium VA-API support to supported drivers

PATCH In review Bernd Kuhls 2 participants 3 messages Jun 19 – Jun 22

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/mesa3d: restrict Gallium VA-API support to supported drivers

This patch fixes a build error introduced by buildroot commit 460700d38e1bb9ddb83bf8de81d69a2448099165 which took not into account that only certain drivers support Gallium VA-API:

../output-1/build/mesa3d-26.1.2/meson.build:742:3: ERROR: Feature
gallium-va cannot be enabled: VA state tracker requires at least one of the following gallium drivers: r600, radeonsi, nouveau, d3d12 (with option gallium-d3d12-video), virgl.

Fixes:
https://autobuild.buildroot.net/results/16b/16b2a63b444d7f84ceab5134ce9ff63e910537a7/

which includes configure option -Dgallium-drivers=etnaviv,r300.

---
Series passed Gitlab pipeline:
https://gitlab.com/bkuhls/buildroot/-/commits/36ff3d2605eb3ce64917b89a54e965204484a10b

 package/mesa3d/Config.in | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
package/mesa3d/Config.in +10 -3
index e4a444efbb..e184039150 100644
@@ -197,6 +197,7 @@ comment "llvmpipe driver needs llvm"
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
 	bool "Gallium nouveau driver"
 	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
+	select BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
 	select BR2_PACKAGE_LIBDRM_NOUVEAU
 	select BR2_PACKAGE_LLVM_RTTI if BR2_PACKAGE_MESA3D_LLVM
 	select BR2_PACKAGE_MESA3D_RUSTICL_SUPPORTED_DRIVER
@@ -236,6 +237,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
 		(BR2_PACKAGE_MESA3D_LLVM && (BR2_TOOLCHAIN_USES_UCLIBC || \
 			BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
 	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
+	select BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
 	select BR2_PACKAGE_LIBDRM_RADEON
 	select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
 	select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
@@ -254,6 +256,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
 	depends on BR2_USE_MMU # libdrm
 	depends on BR2_i386 || BR2_x86_64
 	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
+	select BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
 	select BR2_PACKAGE_MESA3D_HOST_NATIVE_CONTEXT_SUPPORTED_DRIVER
 	select BR2_PACKAGE_LIBDRM_AMDGPU
 	select BR2_PACKAGE_LIBDRM_RADEON
@@ -325,6 +328,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL
 	bool "Gallium virgl driver"
 	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
+	select BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
 	select BR2_PACKAGE_MESA3D_OPENGL_EGL
 	help
 	  virgl is the 3D acceleration backend for the virtio-gpu
@@ -507,17 +511,20 @@ config BR2_PACKAGE_MESA3D_OPENGL_ES
 
 endif # BR2_PACKAGE_MESA3D_DRIVER
 
+config BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
+	bool
+
 config BR2_PACKAGE_MESA3D_GALLIUM_VA
 	bool "Gallium VA-API"
-	depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
+	depends on BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER
 	# circular dependency: mesa3d -> libva -> libgl -> mesa3d
 	depends on !BR2_PACKAGE_MESA3D_OPENGL_GLX || BR2_PACKAGE_LIBGLVND
 	select BR2_PACKAGE_LIBVA
 	help
 	  Enable VA-API video acceleration support in Gallium drivers.
 
-comment "Gallium VA-API needs a gallium driver, incompatible with GLX w/o libglvnd"
-	depends on !BR2_PACKAGE_MESA3D_GALLIUM_DRIVER || \
+comment "Gallium VA-API needs a supported gallium driver, incompatible with GLX w/o libglvnd"
+	depends on !BR2_PACKAGE_MESA3D_GALLIUM_VA_SUPPORTED_DRIVER || \
 		(BR2_PACKAGE_MESA3D_OPENGL_GLX && !BR2_PACKAGE_LIBGLVND)
 
 config BR2_PACKAGE_MESA3D_PATENTED_VIDEO_CODECS
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/{mesa3d, mesa3d-headers}: bump version to 26.1.3

https://lists.freedesktop.org/archives/mesa-announce/2026-June/000855.html

---
Series passed Gitlab pipeline:
https://gitlab.com/bkuhls/buildroot/-/commits/36ff3d2605eb3ce64917b89a54e965204484a10b

 package/mesa3d-headers/mesa3d-headers.mk | 2 +-
 package/mesa3d/mesa3d.hash               | 6 +++---
 package/mesa3d/mesa3d.mk                 | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
package/mesa3d-headers/mesa3d-headers.mk +1 -1
index 3c6f2ee1f2..9781a1357c 100644
@@ -12,7 +12,7 @@ endif
 
 # Not possible to directly refer to mesa3d variables, because of
 # first/second expansion trickery...
-MESA3D_HEADERS_VERSION = 26.1.2
+MESA3D_HEADERS_VERSION = 26.1.3
 MESA3D_HEADERS_SOURCE = mesa-$(MESA3D_HEADERS_VERSION).tar.xz
 MESA3D_HEADERS_SITE = https://archive.mesa3d.org
 MESA3D_HEADERS_DL_SUBDIR = mesa3d
package/mesa3d/mesa3d.hash +3 -3
index deb7ea7f7b..abc0527907 100644
@@ -1,6 +1,6 @@
-# From https://lists.freedesktop.org/archives/mesa-announce/2026-June/000853.html
-sha256  bac2bca9121897a2b8162e79636b50ac998fca799c8e6cf914edd85962babdf0  mesa-26.1.2.tar.xz
-sha512  08e7b6357c27bf6e13f59e6fb0f84b73ec25c2d1a01cd09ffcc35ab263f278f10f3bd36fde419f60e78e781abcb315a432d0d5ceb3bab0bca26b8a2a39758e03  mesa-26.1.2.tar.xz
+# From https://lists.freedesktop.org/archives/mesa-announce/2026-June/000855.html
+sha256  7725004e724b34c6d4fbaf5c48fc6c6223aa9f2741d6d7782c699b049356fc45  mesa-26.1.3.tar.xz
+sha512  6dd452e8c7f2e7e9a26733f53dd0daf4df824f82de3d37c171581854dd419f519e104212aacdf8bdf94042a845d9ba5c45a1605d7cba1dc491570a9e72a91f83  mesa-26.1.3.tar.xz
 # License
 sha256  0d1a0472ecc81830e75c20d59b0ea02841e3db21255e0ebad97ab682c54d6615  docs/license.rst
 sha256  323c587d0ccf10e376f8bf9a7f31fb4ca6078105194b42e0b1e0ee2bc9bde71f  licenses/MIT
package/mesa3d/mesa3d.mk +1 -1
index 23644cd7f5..4e7a5240c7 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 # When updating the version, please also update mesa3d-headers
-MESA3D_VERSION = 26.1.2
+MESA3D_VERSION = 26.1.3
 MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz
 MESA3D_SITE = https://archive.mesa3d.org
 MESA3D_LICENSE = MIT, SGI, Khronos
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/{mesa3d, mesa3d-headers}: bump version to 26.1.3

Hello Bernd, All,

Le 19/06/2026 à 08:30, Bernd Kuhls a écrit :

Quoted 1 line

https://lists.freedesktop.org/archives/mesa-announce/2026-June/000855.html

Series applied to master, thanks.

Best regards,
Romain

Quoted 43 lines

---
Series passed Gitlab pipeline:
https://gitlab.com/bkuhls/buildroot/-/commits/36ff3d2605eb3ce64917b89a54e965204484a10b

 package/mesa3d-headers/mesa3d-headers.mk | 2 +-
 package/mesa3d/mesa3d.hash               | 6 +++---
 package/mesa3d/mesa3d.mk                 | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
package/mesa3d-headers/mesa3d-headers.mk +1 -1
index 3c6f2ee1f2..9781a1357c 100644
@@ -12,7 +12,7 @@ endif
 
 # Not possible to directly refer to mesa3d variables, because of
 # first/second expansion trickery...
-MESA3D_HEADERS_VERSION = 26.1.2
+MESA3D_HEADERS_VERSION = 26.1.3
 MESA3D_HEADERS_SOURCE = mesa-$(MESA3D_HEADERS_VERSION).tar.xz
 MESA3D_HEADERS_SITE = https://archive.mesa3d.org
 MESA3D_HEADERS_DL_SUBDIR = mesa3d
package/mesa3d/mesa3d.hash +3 -3
index deb7ea7f7b..abc0527907 100644
@@ -1,6 +1,6 @@
-# From https://lists.freedesktop.org/archives/mesa-announce/2026-June/000853.html
-sha256  bac2bca9121897a2b8162e79636b50ac998fca799c8e6cf914edd85962babdf0  mesa-26.1.2.tar.xz
-sha512  08e7b6357c27bf6e13f59e6fb0f84b73ec25c2d1a01cd09ffcc35ab263f278f10f3bd36fde419f60e78e781abcb315a432d0d5ceb3bab0bca26b8a2a39758e03  mesa-26.1.2.tar.xz
+# From https://lists.freedesktop.org/archives/mesa-announce/2026-June/000855.html
+sha256  7725004e724b34c6d4fbaf5c48fc6c6223aa9f2741d6d7782c699b049356fc45  mesa-26.1.3.tar.xz
+sha512  6dd452e8c7f2e7e9a26733f53dd0daf4df824f82de3d37c171581854dd419f519e104212aacdf8bdf94042a845d9ba5c45a1605d7cba1dc491570a9e72a91f83  mesa-26.1.3.tar.xz
 # License
 sha256  0d1a0472ecc81830e75c20d59b0ea02841e3db21255e0ebad97ab682c54d6615  docs/license.rst
 sha256  323c587d0ccf10e376f8bf9a7f31fb4ca6078105194b42e0b1e0ee2bc9bde71f  licenses/MIT
package/mesa3d/mesa3d.mk +0 -0
index 23644cd7f5..4e7a5240c7 100644

package/mesa3d/mesa3d.mk line 11

Quoted 8 lines
package/mesa3d/mesa3d.mk +1 -1
@@ -5,7 +5,7 @@
 ################################################################################
 
 # When updating the version, please also update mesa3d-headers
-MESA3D_VERSION = 26.1.2
+MESA3D_VERSION = 26.1.3
 MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz
 MESA3D_SITE = https://archive.mesa3d.org
 MESA3D_LICENSE = MIT, SGI, Khronos

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot