From 03455cb7fd9a5fecf035dd4f4a37d423b378697d Mon Sep 17 00:00:00 2001 From: Daniel Ritchie Date: Sun, 23 Nov 2025 03:55:55 -0700 Subject: [PATCH] fix(rockchip-rk3588): Enable mesa-vpu extension for GPU acceleration Extensions seem to be optional, but the mesa-vpu extension author stated this 'should be enabled on all for rk3588 distributions' but was never implemented. Without it, desktop images use llvmpipe software rendering instead of GPU. Although ENABLE_EXTENSIONS=mesa-vpu resolves the issue, users will run into concerns for other optional extensions similar to #7482. Approach uses extension_prepare_config hook to auto-enable mesa-vpu, ensuring it loads regardless of user-specified ENABLE_EXTENSIONS. Tested on Orange Pi 5 Plus: glxinfo now shows Mali-G610 (Panfrost). --- config/sources/families/rockchip-rk3588.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/sources/families/rockchip-rk3588.conf b/config/sources/families/rockchip-rk3588.conf index c78fad693348..b245ebd7beb0 100644 --- a/config/sources/families/rockchip-rk3588.conf +++ b/config/sources/families/rockchip-rk3588.conf @@ -55,6 +55,11 @@ family_tweaks_bsp() { : } +function extension_prepare_config__enable_mesa_vpu() { + # Auto-enable mesa-vpu for RK3588 GPU acceleration + enable_extension "mesa-vpu" +} + # Additional CFLAGS were previously needed to disable certain errors when building vendor U-Boot. # This is now fixed in Radxa U-Boot sources, but left here (commented out) for reference in case new errors appear in the future.