[Tutorial] Making Mesa display OpenGL 4.5 instead of 4.3

Discussion in 'all things UNIX' started by amarildojr, Oct 15, 2016.

  1. amarildojr

    amarildojr Registered Member

    Joined:
    Aug 8, 2013
    Posts:
    1,989
    Location:
    Brasil
    Since all 4.4 and 4.5 OGL extensions are already done in Mesa, you can literally play the games that require OpenGL 4.5 but don't launch with current Mesa.

    What you'll need:

    • LLVM-SVN;
    • Mesa-git
    Since I'm really short of time, the only thing I'll be showing is the patch (if you're compiling Mesa from git) and the command used if you're unable to compile Mesa yourself.
    Also, this isn't intended for new users. So if you don't know how to add Padoka's PPA on Ubuntu or Debian, or LLVM-SVN and Mesa-git repos on Arch, stay with current Mesa-Stable.

    For Arch, simply add the following two repositories:

    https://wiki.archlinux.org/index.php/Unofficial_repositories#llvm-svn
    https://wiki.archlinux.org/index.php/Unofficial_repositories#mesa-git

    If you're going to build Mesa-git from AUR, you definitely need LLVM-SVN installed, either after compiling it yourself or by installing it from the repo.

    The patch to make Mesa use and display OGL 4.5 is: https://github.com/FireBurn/Overlay/blob/master/media-libs/mesa/files/OpenGL45.patch

    Or if you've installed LLVM-SVN and Mesa-Git from the repos (on whatever distro), add this command to whatever program requires OpenGL 4.5 (I use it for Steam):

    Code:
    env MESA_GLSL_VERSION_OVERRIDE=450 env MESA_GL_VERSION_OVERRIDE=4.5COMPAT /usr/bin/program
    The result is this: https://i.imgur.com/BDnYg9x.png

    Before using the command, maximum Core OGL was 4.3 and Max_Compat was 3.0.

    Happy gaming!
     
Loading...