Add newer Mesa + libdrm to pmaports
This adds a Mesa package overriding Mesa in Alpine, and:
-
builds a much newer version of Mesa than what is found in Alpine (by not building amd/radeonsi support, so no dependency on llvm)
-
builds Mesa with tegra and etnaviv drivers (note, as of now, the librem5 devkit gpu is not supported in the etnaviv driver here)
This adds a package overriding the libdrm in Alpine with a newer version, and also building libdrm with support for experimental devices (etnaviv and tegra).
fixes #195 (closed) fixes #192 (closed)
@postmarketos: I will need help testing that this doesn't break other devices that have 3D accel support (qemu, freedreno stuff, etc), and also anything that uses swrast would be helpful too but it seems to work on my librem5 devkit with this MR :)
Merge request reports
Activity
mentioned in merge request !236 (merged)
By clayton craft on 2019-03-06T00:25:59
I've tested it on the lg-hammerhead and it seems to work exactly the same as master.
What does this mean, does it boot into black screen?
I will need help testing that this doesn't break other devices that have 3D accel support (qemu, freedreno stuff, etc), and also anything that uses swrast would be helpful too but it seems to work on my librem5 devkit with this MR :)
Unfortunately it does not work with
pmbootstrap qemu
for me: https://gitlab.com/snippets/1832558By Oliver Smith on 2019-03-06T08:58:56
@ollieparanoid No I thought the black screen bug was fixed, It runs fine with this PR and plasma, maybe even smoother than before.
By Martijn Braam on 2019-03-06T10:28:52
yup, can confirm this runs fine for me as well on lg-hammerhead, if merged it will fix #192 (closed)
and no @MartijnBraam i had found a workaround for black screen (downgrade mesa) but nothing has been merged to fix it yet
By foldedcascode on 2019-03-06T18:19:33
Edited by Administrator@foldedcascode: that is awesome news!
I agree with @GrantM11235, that this should be in
temp
, because the package is also in Alpine. Ideally we would work together with Alpine some day to make sure that they are always on the latest mesa version inedge
(when the llvm problem is sorted out).By Oliver Smith on 2019-03-07T08:16:32
I'll do the following:
- do some cosmetic fixes, such as moving from main to temp
- merge this MR as it is, even if it breaks qemu for some users for now. they can still use
--host-qemu
- create an issue to allow pmbootstrap to install mesa from Alpine's repos if the pmaport is not available for x86_64 (that is currently not possible, even if we set the arch in the APKBUILD accordingly) (https://gitlab.com/postmarketOS/pmbootstrap/issues/1741)
- fix that pmbootstrap issue on saturday
- change the arch of our mesa package to
arch="armhf aarch64 armv7"
- then qemu should work on x86* again as usually, because it would use Alpine's package
By Oliver Smith on 2019-03-07T09:03:05
Edited by Administratormentioned in issue pmbootstrap#1741 (closed)
By Oliver Smith on 2019-03-07T08:49:25
added 2 commits
- 8c9b01ce - libdrm: Add new package tracking newer libdrm (!256 (merged))
- 6dd3ef2f - mesa: Add new package tracking newer Mesa version (!256 (merged))
By Oliver Smith on 2019-03-07T09:02:21
mentioned in commit e0868657
By Oliver Smith on 2019-03-11T08:04:18
mentioned in commit 6dd3ef2f
By clayton craft on 2019-03-23T12:31:29
mentioned in commit 8c9b01ce
By clayton craft on 2019-03-23T12:31:29