While you're here, please consider supporting GamingOnLinux on:
Reward Tiers:
Patreon. Plain Donations:
PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Reward Tiers:
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register
- Proton is getting some "horrible" workarounds for Forza Horizon 6 on Linux
- You think you've seen it all and then there's a Wayland Compositor inside Minecraft on Linux
- The PlayStation 5 Linux project has been upgraded to support more firmware
- Proton-CachyOS 11 adds initial OptiScaler integration and lots of other fixes
- Oops - someone nearly caused a fire with the Steam Controller Puck
- > See more over 30 days here
- What have you been playing recently? - 17th May edition…
- Lop1 - Building Mesa from source and using Mesa master
- Shmerl - Why purchase video game soundtracks over listening to them in str…
- Shmerl - Are Mac computers good and stable?
- rojimboo - Latest comments page update
- Liam Squires-Hand - See more posts
Anticheat check - which competitive games actually work on Linux?
How to give Valve feedback when Proton games have issues on Linux / SteamOS
In such case I simply build a newer libdrm package for Debian and install it system wide. It's easier than pointing to some custom libdrm location when building. In your case you need both regular and dev package for building Mesa.
I wrote down for myself how to do it, so here is my note:
Let's say Debian still has older libdrm (let's say 2.4.97), and you want a newer one (2.4.99).
Make sure to have devscripts package installed.
wget https://dri.freedesktop.org/libdrm/libdrm-2.4.99.tar.gz -O $HOME/downloads/libdrm-2.4.99.tar.gz
mkdir -p $HOME/build/libdrm
cd $HOME/build/libdrm
sudo apt-get build-dep libdrm
apt-get source libdrm
cd libdrm-2.4.97
uupdate ~/downloads/libdrm-2.4.99.tar.gz
cd ../libdrm-2.4.99
dpkg-buildpackage -us -uc -nc
# You might need to add some missing symbol definitions along the way to match new upstream
To build 32-bit variant, use:
apt-get build-dep -a i386 libdrm
dpkg-buildpackage -a i386 -us -uc -nc
# You might need to install some gcc packages manually, since apparently build-dep -a i386 is not enough.
# Possibly dpkg --force-overwrite -i is needed, to work around changelog
conflicts in packages.
Considering how old Debian 9 is, all the signs would tell me to go for something newer. It's been a fun learning experience though so I'll keep digging :)
what you you got going for a meson configure line these days? if you compile it yourself.
-Dvulkan-overlay-layer=true doesn't work anymore. Do you know how debian configures it?
https://gist.github.com/shmerl/f4e5f76871239158cf083e37c5da56f4
I have something like this:
-Dvulkan-layers="['device-select','overlay']"To check how Debian does it, I usually go to the tracker page: https://tracker.debian.org/pkg/mesa
Then look for the build logs link (buildd: logs): https://buildd.debian.org/status/package.php?p=mesa
Then select amd64 and click "Installed" (pretty obscure link on that page):
https://buildd.debian.org/status/fetch.php?pkg=mesa&arch=amd64&ver=22.2.0%7Erc2-1&stamp=1660228051&raw=0
You can find Meson invocation there.
I use that to periodically update my script if things change too much.
Last edited by Shmerl on 17 Aug 2022 at 11:32 pm UTC
Recently Debian has been stuck too long with libdrm which is a bit behind what Mesa git needs, so I just decided to add an option to use local libdrm with my Mesa build script.
For building libdrm itself: https://gist.github.com/shmerl/ec9d26d5b638f1ec63331215c843c875