Skip to content
Snippets Groups Projects

Add newer Mesa + libdrm to pmaports

Merged Imported Administrator requested to merge feature/mesa into master

This adds a Mesa package overriding Mesa in Alpine, and:

  1. builds a much newer version of Mesa than what is found in Alpine (by not building amd/radeonsi support, so no dependency on llvm)

  2. 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 :)

Edited by Administrator

Merge request reports

Approved by

Merged by AdministratorAdministrator 6 years ago (Mar 7, 2019 9:05am UTC)

Merge details

Pipeline #196848 passed

Pipeline passed for 6dd3ef2f on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Author Owner

    I've tested it on the lg-hammerhead and it seems to work exactly the same as master.

    By Martijn Braam on 2019-03-05T21:07:40

  • Administrator approved this merge request · Imported

    approved this merge request

    By Martijn Braam on 2019-03-05T21:07:44

  • Administrator mentioned in merge request !236 (merged) · Imported

    mentioned in merge request !236 (merged)

    By clayton craft on 2019-03-06T00:25:59

  • Author Owner

    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/1832558

    By Oliver Smith on 2019-03-06T08:58:56

  • Author Owner

    @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

  • Author Owner

    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
  • Author Owner

    Should this be put in temp instead of main?

    By Grant Miller on 2019-03-06T23:18:35

  • Author Owner

    I'm open to discuss. It's not likely Alpine would catch up to current Mesa releases as they come out once a quarter, just looking at their history..

    By clayton craft on 2019-03-07T01:11:30

  • Author Owner

    @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 in edge (when the llvm problem is sorted out).

    By Oliver Smith on 2019-03-07T08:16:32

  • Author Owner

    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 Administrator
  • Administrator mentioned in issue pmbootstrap#1741 (closed) · Imported

    mentioned in issue pmbootstrap#1741 (closed)

    By Oliver Smith on 2019-03-07T08:49:25

  • Administrator added 2 commits · Imported

    added 2 commits

    Compare with previous version

    By Oliver Smith on 2019-03-07T09:02:21

  • Administrator approved this merge request · Imported

    approved this merge request

    By Oliver Smith on 2019-03-07T09:04:38

  • Administrator changed the description · Imported

    changed the description

    By Oliver Smith on 2019-03-07T09:05:16

  • Administrator merged · Imported

    merged

    By Oliver Smith on 2019-03-07T09:05:49

  • Administrator mentioned in commit e0868657 · Imported

    mentioned in commit e0868657

    By Oliver Smith on 2019-03-11T08:04:18

  • Administrator mentioned in commit 6dd3ef2f · Imported

    mentioned in commit 6dd3ef2f

    By clayton craft on 2019-03-23T12:31:29

  • Administrator mentioned in commit 8c9b01ce · Imported

    mentioned in commit 8c9b01ce

    By clayton craft on 2019-03-23T12:31:29

    • Administrator @root commented on commit 6dd3ef2f Imported
      Author Owner

      It's a bit outdated now though, I plan to update it in the next 2 weeks.

      By clayton craft on 2019-07-20T20:30:51

Please register or sign in to reply
Loading