Pasthis

Raw | New paste
Expires in 6 days 8 hours.
commit 42f7e535947b148b8084904f9c60b80edbd308e1
Author: Quentin Schulz <quentin.schulz@cherry.de>
Date:   Fri May 31 17:24:48 2024 +0200

    mesa: add support for RK3588(S)
    
    The Mali G610 found in the RK3588(S) SoC still requires a blob coming
    from a linux-firmware package to work.
    Therefore, recommend that package when building mesa for rk3588(s).
    
    Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>

diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend
index 50d62b8..d9e7c08 100644
--- a/recipes-graphics/mesa/mesa.bbappend
+++ b/recipes-graphics/mesa/mesa.bbappend
@@ -9,3 +9,6 @@ MALI_DRIVER:rk3308 = ""
 
 PACKAGECONFIG:append:rockchip = " ${@bb.utils.filter('MALI_DRIVER', 'lima panfrost', d)}"
 PACKAGECONFIG:append:rockchip = "${@bb.utils.contains('MALI_DRIVER', 'panfrost', ' libclc', '', d)}"
+
+# Mali Gen10 (Valhall, supported by Panthor) requires a firmware blob
+RRECOMMENDS:mesa-megadriver:append:rk3588s = " linux-firmware-mali-csffw-arch108"

commit 0ab47e55f914e80e2a680d2aca895eaef065ce86
Author: Quentin Schulz <quentin.schulz@cherry.de>
Date:   Wed Jun 11 17:59:51 2025 +0200

    mesa: rework bbappend to default to panfrost
    
    Let's assume most Rockchip SoCs to come will be based on an Arm Mali GPU
    supported by Panfrost so let's always add panfrost drivers to mesa.
    
    Make the Mali-400/450 SoC such as RK3066, RK3188 and RK3328 use lima
    instead.
    
    Finally, do not add any mesa mali (panfrost or lima) driver for GPU-less
    SoC like RK3308.
    
    This will allow to not need to touch this recipe every time we add
    support for a new SoC with GPU supported by Mesa Panfrost.
    
    This also **almost** brings support for the GPU found on RK3588.
    
    Note that some GPUs (gen10; Valhall; Panthor; like on RK3588) still
    require additional firmware (CSFFW).
    
    Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>

diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend
index 1057e11..50d62b8 100644
--- a/recipes-graphics/mesa/mesa.bbappend
+++ b/recipes-graphics/mesa/mesa.bbappend
@@ -1,8 +1,11 @@
-PACKAGECONFIG:append:rk3066 = " lima"
-PACKAGECONFIG:append:rk3188 = " lima"
-PACKAGECONFIG:append:rk3288 = " libclc panfrost"
-PACKAGECONFIG:append:rk3328 = " lima"
-PACKAGECONFIG:append:rk3399 = " libclc panfrost"
-PACKAGECONFIG:append:rk3566 = " libclc panfrost"
-PACKAGECONFIG:append:rk3568 = " libclc panfrost"
-PACKAGECONFIG:append:px30 = " libclc panfrost"
+MALI_DRIVER = "panfrost"
+# MALI 400
+MALI_DRIVER:rk3066 = "lima"
+MALI_DRIVER:rk3188 = "lima"
+# MALI 450
+MALI_DRIVER:rk3328 = "lima"
+# No GPU
+MALI_DRIVER:rk3308 = ""
+
+PACKAGECONFIG:append:rockchip = " ${@bb.utils.filter('MALI_DRIVER', 'lima panfrost', d)}"
+PACKAGECONFIG:append:rockchip = "${@bb.utils.contains('MALI_DRIVER', 'panfrost', ' libclc', '', d)}"

commit 6add3b687d716fab4b7c4a073942cc2701cc9202
Author: Quentin Schulz <quentin.schulz@cherry.de>
Date:   Wed Jun 11 17:55:43 2025 +0200

    mesa: enable lima for RK3188 boards
    
    lima is the the open-source implementation for the GPU found on RK3188,
    the Mali 400, so let's enable it for RK3188 boards by default.
    
    Not tested.
    
    Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>

diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend
index 19f0072..1057e11 100644
--- a/recipes-graphics/mesa/mesa.bbappend
+++ b/recipes-graphics/mesa/mesa.bbappend
@@ -1,4 +1,5 @@
 PACKAGECONFIG:append:rk3066 = " lima"
+PACKAGECONFIG:append:rk3188 = " lima"
 PACKAGECONFIG:append:rk3288 = " libclc panfrost"
 PACKAGECONFIG:append:rk3328 = " lima"
 PACKAGECONFIG:append:rk3399 = " libclc panfrost"

commit 88f7e1b9d879d0fff73668ed9f347728c4bc38bc
Author: Quentin Schulz <quentin.schulz@cherry.de>
Date:   Wed Jun 11 17:55:43 2025 +0200

    mesa: enable lima for RK3066 boards
    
    lima is the the open-source implementation for the GPU found on RK3066,
    the Mali 400, so let's enable it for RK3066 boards by default.
    
    Not tested.
    
    Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>

diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend
index 507e2fa..19f0072 100644
--- a/recipes-graphics/mesa/mesa.bbappend
+++ b/recipes-graphics/mesa/mesa.bbappend
@@ -1,3 +1,4 @@
+PACKAGECONFIG:append:rk3066 = " lima"
 PACKAGECONFIG:append:rk3288 = " libclc panfrost"
 PACKAGECONFIG:append:rk3328 = " lima"
 PACKAGECONFIG:append:rk3399 = " libclc panfrost"

commit 3db7bb0fcb5e894ea6b7c7df61fc70f91a7e8485
Author: Quentin Schulz <quentin.schulz@cherry.de>
Date:   Wed Jun 11 17:40:54 2025 +0200

    mesa: add libclc to PACKAGECONFIG for Panfrost-supported SoCs
    
    Panfrost mesa drivers do not compile without libclc support anymore, I
    assume since commit 20970bcd9652 ("panfrost: Add base of OpenCL C
    infrastructure") merged in 25.1.0.
    
    So this adds the missing libclc PACKAGECONFIG to Panfrost-supported
    SoCs.
    
    Note that mesa recipe in OE-Core will be updated to not build panfrost
    if libclc PACKAGECONFIG is missing.
    
    Reported-by: Trevor Woerner <twoerner@gmail.com>
    Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>

diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend
index e0b38ce..507e2fa 100644
--- a/recipes-graphics/mesa/mesa.bbappend
+++ b/recipes-graphics/mesa/mesa.bbappend
@@ -1,6 +1,6 @@
-PACKAGECONFIG:append:rk3288 = " panfrost"
+PACKAGECONFIG:append:rk3288 = " libclc panfrost"
 PACKAGECONFIG:append:rk3328 = " lima"
-PACKAGECONFIG:append:rk3399 = " panfrost"
-PACKAGECONFIG:append:rk3566 = " panfrost"
-PACKAGECONFIG:append:rk3568 = " panfrost"
-PACKAGECONFIG:append:px30 = " panfrost"
+PACKAGECONFIG:append:rk3399 = " libclc panfrost"
+PACKAGECONFIG:append:rk3566 = " libclc panfrost"
+PACKAGECONFIG:append:rk3568 = " libclc panfrost"
+PACKAGECONFIG:append:px30 = " libclc panfrost"

commit c61918bd85daf92b107b3d66f32faa4de08cb037
Author: Quentin Schulz <quentin.schulz@cherry.de>
Date:   Tue Apr 15 11:14:23 2025 +0200

    mesa: remove kmsro from PACKAGECONFIG
    
    Mesa has dropped[1] support for a separate kmsro option to the
    gallium-drivers.
    
    It is therefore not necessary to pass it to PACKAGECONFIG anymore,
    especially since the kmsro PACKAGECONFIG doesn't exit in the mesa recipe
    anymore[2].
    
    [1] https://gitlab.freedesktop.org/mesa/mesa/-/commit/89863a050bea429d9574a307bc28953bb60accaf
    [2] https://git.openembedded.org/openembedded-core/commit/?id=3d9ec347e651e05d0246a8723ca4038bb1f5b765
    Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>

diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend
index 00cc15c..e0b38ce 100644
--- a/recipes-graphics/mesa/mesa.bbappend
+++ b/recipes-graphics/mesa/mesa.bbappend
@@ -1,6 +1,6 @@
-PACKAGECONFIG:append:rk3288 = " kmsro panfrost"
-PACKAGECONFIG:append:rk3328 = " kmsro lima"
-PACKAGECONFIG:append:rk3399 = " kmsro panfrost"
-PACKAGECONFIG:append:rk3566 = " kmsro panfrost"
-PACKAGECONFIG:append:rk3568 = " kmsro panfrost"
-PACKAGECONFIG:append:px30 = " kmsro panfrost"
+PACKAGECONFIG:append:rk3288 = " panfrost"
+PACKAGECONFIG:append:rk3328 = " lima"
+PACKAGECONFIG:append:rk3399 = " panfrost"
+PACKAGECONFIG:append:rk3566 = " panfrost"
+PACKAGECONFIG:append:rk3568 = " panfrost"
+PACKAGECONFIG:append:px30 = " panfrost"