Upgrading to latest mesa without patches

For several days I’m running the latest mesa (the OpenGL implementation that includes the userspace part of etnaviv, the driver for the Vivante GC7000L GPU in the i.MX8MQ in MNT Reform) from git, without patches, and it works very well. It also fixes a few visual bugs in desktop GL applications (for example the 3D viewer in KiCAD).

Edit: The most straight-forward solution to get to the tip of the main branch is: Upgrading to latest mesa without patches - #5 by devyl

Finally, pkill sway and restart sway.

1 Like

i think there is missing something in your howto:

root@reform:~/src/mesa# git branch -m main
fatal: Ungültiger Branchname: ‘HEAD’
root@reform:~/src/mesa# git branch --set-upstream-to=origin/main
fatal: Konnte keinen neuen Upstream-Branch von HEAD zu origin/main setzen, da dieser auf keinen Branch zeigt.

“git checkout src” was executed without errors.
“git status” gives me the information that the repository is in no branch.

Hmm I remember that I actually had this problem, too, and what helped was editing .git/config and just replacing all instances of master with main there.

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote “origin”]
url = https://gitlab.freedesktop.org/mesa/mesa.git
fetch = +refs/tags/mesa-20.3.4:refs/tags/mesa-20.3.4

maybe i missunderstand what you mean, but this is .git/config of /root/src/mesa O.o?

Ok, i just compiled and installed mesa with:

cd /root/src
mv mesa mesa_old
git clone --depth 1 https://gitlab.freedesktop.org/mesa/mesa.git
cd mesa
meson build -Dplatforms=x11,wayland -Ddri3=true -Dgallium-drivers=swrast,etnaviv,kmsro,virgl -Dgbm=enabled -Degl=enabled -Dbuildtype=release -Db_ndebug=true 
ninja -C build install
1 Like