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.

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

I successfully did this, and I’m now running OpenGL version string: 1.3 Mesa 21.3.0-devel (git-445996379b).

However, I’m not noticing a difference so far. Are there any cool features I should be looking for on the latest Mesa?

How do I go back to the stable version of mesa?

I would recommend just to stay at that version and report any problems you encounter here. If you want to go back to a release version you first need to check which is the latest release: Release Notes — The Mesa 3D Graphics Library latest documentation

At the time of writing, this would be 21.2.3. So you would need to checkout the tag mesa-21.2.3 and otherwise build and install mesa as before:

git clone --depth 1 --branch mesa-21.2.3 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