Building Mesa 11.0 With OpenGL 4.1 On Ubuntu Linux

Written by Michael Larabel in Mesa on 26 August 2015 at 01:58 PM EDT. 14 Comments
I'm in the process of doing several interesting Mesa 11.0 tests with different GPUs as well as using the latest LLVM and Linux kernel code.

With Mesa 11.0 bringing OpenGL 4.1 for the RadeonSI and NVC0 drivers rather than OpenGL 3.3, there's been lots of interest in this upcoming version of Mesa by Phoronix readers.

There's been several Phoronix readers sending in questions about how to easily get this latest Mesa revision with OpenGL 4.1 on Ubuntu. Unfortunately, it's not as easy as using the Oibaf PPA if you're a RadeonSI Gallium3D driver user since there it requires LLVM 3.7 (or 3.8/SVN) for OpenGL 4.1 compliance while the Oibaf PPA packages are currently using LLVM 3.6. However, for those wanting to building Mesa on Ubuntu Linux with LLVM SVN for the latest AMD GPU back-end experience, embedded below are the rough steps:
# Add the appropriate APT repository depending on your version of Debian/Ubuntu
sudo apt-get update
sudo apt-get install llvm-3.8-dev
sudo ln -s /usr/bin/llvm-config-3.8 /usr/bin/llvm-config
sudo apt-get build-dep mesa
sudo apt-get install libomxil-bellagio-dev git-core
git clone git://
cd mesa/
git checkout origin/11.0
./ --prefix=/usr --enable-texture-float --libdir=/usr/lib/x86_64-linux-gnu/ --with-gallium-drivers=nouveau,radeonsi,r600 --with-egl-platforms=drm,x11 --enable-glx-tls --enable-shared-glapi --enable-glx --enable-driglx-direct --enable-gles1 --enable-gless2
make -j9
sudo make install
If you're a Nouveau or Intel user, the LLVM steps aren't important. There you can also just use the Oibaf PPA as the quick and easy approach.

It'd also be recommended to use the latest Linux kernel for the best open-source experience. For that there is the daily Ubuntu mainline kernel Git packages or DRM-Next packages for getting the updated code so far that will be merged into Linux 4.3. If you're in need of more support for getting the latest Mesa on Ubuntu/Debian or the distribution of your choice, visit the Phoronix Forums.

Besides a number of Mesa tests, also running some fresh AMDGPU DRM benchmarks -- including with the Radeon R9 Fury. Stay tuned for a lot of interesting tests in the days ahead.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week