mesa: Support rockchip platforms

  • Done
  • quality assurance status badge
Details
2 participants
  • Marius Bakke
  • Vagrant Cascadian
Owner
unassigned
Submitted by
Vagrant Cascadian
Severity
normal

Debbugs page

Vagrant Cascadian wrote 5 years ago
(address . guix-patches@gnu.org)
87imivbt46.fsf@yucca
The attached patch enables drivers in mesa which should allow some
aarch64/armhf rockchip platforms (e.g. veyron-speedy, pinebook pro) to
make use of gpu acceleration.

I haven't thoroughly tested this patch yet, but it does at least build
and produces an appropriate dri library!

There are almost 2000 dependent packages on mesa, so this probably needs
though core-updates according to current recommendations... I haven't
tried rebuilding all the dependent packages? FWIW, I *think* it will
only trigger a rebuild on aarch64/armhf.


live well,
vagrant
From d7c810c1a5b306439a47263ab294398d1382ecbe Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@debian.org>
Date: Sun, 22 Mar 2020 16:32:33 +0000
Subject: [PATCH] gnu: mesa: Enable rockchip support on aarch64/armhf.

* gnu/packages/gl (mesa): Enable kmsro, lima and panfrost gallium drivers.
---
gnu/packages/gl.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Toggle diff (15 lines)
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 01241cd88e..710c602a96 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -293,7 +293,7 @@ also known as DXTn or DXTC) for Mesa.")
'(,@(match (%current-system)
((or "armhf-linux" "aarch64-linux")
;; TODO: Fix svga driver for aarch64 and armhf.
- '("-Dgallium-drivers=etnaviv,freedreno,nouveau,r300,r600,swrast,tegra,v3d,vc4,virgl"))
+ '("-Dgallium-drivers=etnaviv,freedreno,kmsro,lima,nouveau,panfrost,r300,r600,swrast,tegra,v3d,vc4,virgl"))
(_
'("-Dgallium-drivers=iris,nouveau,r300,r600,radeonsi,svga,swrast,virgl")))
;; Enable various optional features. TODO: opencl requires libclc,
--
2.20.1
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXng42QAKCRDcUY/If5cW
qtCrAP4pY7wonx2i1eQQQpvvd0FWnXpOkizh+kQ9awkmeE5AgAD/blCYg7D8KznW
jRMHwLcSlH/KNU9CK1Wvw2sqpuDytQM=
=7Uhm
-----END PGP SIGNATURE-----

Marius Bakke wrote 5 years ago
877dz2x6kh.fsf@devup.no
Vagrant Cascadian <vagrant@debian.org> writes:

Toggle quote (4 lines)
> The attached patch enables drivers in mesa which should allow some
> aarch64/armhf rockchip platforms (e.g. veyron-speedy, pinebook pro) to
> make use of gpu acceleration.

Awesome! :-)

Toggle quote (3 lines)
> I haven't thoroughly tested this patch yet, but it does at least build
> and produces an appropriate dri library!

Sounds good.

Toggle quote (5 lines)
> There are almost 2000 dependent packages on mesa, so this probably needs
> though core-updates according to current recommendations... I haven't
> tried rebuilding all the dependent packages? FWIW, I *think* it will
> only trigger a rebuild on aarch64/armhf.

Indeed. We are just about to start the core-updates branch, so this
patch came just in time. LGTM, please push!
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6BAX4ACgkQoqBt8qM6
VPpi3wgAn6fy6MxrMyou5NzMpp2raWfrjVjfgAVk23tLIlpS66RNdEUImI8c1XYH
de84SstKygQuF7cu7lRUZyqptpmzZm9KYMo71+4h+Ho0JO7otmyuMQ5Ah/3wNIM/
nRvsH0syEsMM/dHEsyTGvnOtXY++kbZpEsGQIMhSnSjTz96E9hedBVCepbbu9SLu
EMsLt+U69uL9he2zdN3FZqtDnYibGNjI7ET6oHN8RrNlA7LcAcuBNeK8xo3j5b93
10Fiqldhe/UMD4n7tJ8MaC7pWEZIW0wz3jNyPLmnvjLxw67upC5vBTGCpuyDIzyn
WGLDgtVPkgVdoxW4Z41406FW6PqoUA==
=Al5o
-----END PGP SIGNATURE-----

Vagrant Cascadian wrote 5 years ago
87bloex1nf.fsf@ponder
On 2020-03-29, Marius Bakke wrote:
Toggle quote (21 lines)
> Vagrant Cascadian <vagrant@debian.org> writes:
>
>> The attached patch enables drivers in mesa which should allow some
>> aarch64/armhf rockchip platforms (e.g. veyron-speedy, pinebook pro) to
>> make use of gpu acceleration.
>
> Awesome! :-)
>
>> I haven't thoroughly tested this patch yet, but it does at least build
>> and produces an appropriate dri library!
>
> Sounds good.
>
>> There are almost 2000 dependent packages on mesa, so this probably needs
>> though core-updates according to current recommendations... I haven't
>> tried rebuilding all the dependent packages? FWIW, I *think* it will
>> only trigger a rebuild on aarch64/armhf.
>
> Indeed. We are just about to start the core-updates branch, so this
> patch came just in time. LGTM, please push!

Pushed to core-updates!


live well,
vagrant
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXoEaZQAKCRDcUY/If5cW
qqxDAQC9uDSvsOqxkRNc2k2oz5HJLtf6ow93GpCz7QDf0nWoHAD+Oai/fNN0S5lX
2h6VxhzymdnhnGXeBTdbEWoFgTU/vAE=
=NmxR
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 40191@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 40191
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help