mbox series

[meta-rockchip,v3,0/6] mesa: build fixes, refactoring and adding support for RK3588(s), RK3066, RK3188

Message ID 20250627-mesa-panthor-v3-0-798c24a9eef3@cherry.de
Headers show
Series mesa: build fixes, refactoring and adding support for RK3588(s), RK3066, RK3188 | expand

Message

Quentin Schulz June 27, 2025, 2:19 p.m. UTC
This removes now unneeded kmsro PACKAGECONFIG as mesa dropped it (as
well as OE-Core's recipe).

The Panfrost drivers currently do not compile anymore due to a missing
libclc PACKAGECONFIG dependency so this adds the libclc to the
Panfrost-supported SoCs.

This refactors a bit the bbappend to hopefully require a bit less
maintenance with newer SoCs with most assumed to be supported by
Panfrost mesa drivers.

This enables (untested) support for lima mesa driver on RK3066 and
RK3188.

Finally, this enables Panthor support for RK3588(S).

Panthor is the open-source implementation for the Arm GPU Valhall series
both in the Linux kernel and Mesa userspace. In the latter, the panfrost
"driver" is actually handling this version of the Arm GPU. One therefore
needs to enable panfrost in PACKAGECONFIG to be able to use this
open-source implementation.

The open-source implementation still requires a proprietary blob which
is running on the GPU: mali_csffw.bin. Note that the closed-source
implementation (libmali and vendor kernel drivers) also requires this
blob.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
Changes in v3:
- added now-required libclc dependency for panfrost,
- added support for RK3066 and RK3188 (though untested)
- refactored bbappend to default to panfrost unless specified otherwise,
- Link to v2: https://lore.kernel.org/r/20250415-mesa-panthor-v2-0-a7850d0091fe@cherry.de

Changes in v2:
- rebased on top of master with mesa 25.0 update merged
- added patch 3 which removes kmsro from PACKAGECONFIG as it's now
  unnecessary,
- Link to v1: https://lore.kernel.org/r/20240531-mesa-panthor-v1-0-8cfb4d17ad3a@cherry.de

---
Quentin Schulz (6):
      mesa: remove kmsro from PACKAGECONFIG
      mesa: add libclc to PACKAGECONFIG for Panfrost-supported SoCs
      mesa: enable lima for RK3066 boards
      mesa: enable lima for RK3188 boards
      mesa: rework bbappend to default to panfrost
      mesa: add support for RK3588(S)

 recipes-graphics/mesa/mesa.bbappend | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)
---
base-commit: d01077165243de983e2d12c9e75e9818bdbb5a4d
change-id: 20240531-mesa-panthor-9c31ca1aa31f

Best regards,