{"title":"Flatpak Mesa Git","url":"https://seanbehan.ca/posts/flatpak-mesa","description":"Swapping the Flatpak Mesa runtime for mesa-git so a new AMD card stops falling back to software OpenGL.","author":"Sean Behan","published":"2023-05-25T17:48:28.000Z","updated":null,"draft":false,"tags":["graphics","linux"],"readingMinutes":1,"image":null,"sections":[{"id":"the-problem","text":"The Problem","level":3},{"id":"the-solution","text":"The Solution","level":3},{"id":"usage","text":"Usage","level":3}],"content_format":"text/markdown","content_url":"https://seanbehan.ca/posts/flatpak-mesa.md","content":"### The Problem\n\nIf you've switched to Flatpak for gaming you may notice that Mesa is sometimes a little bit old. The issue I had myself was that my 6000 series AMD graphics card didn't have up to date graphics drivers, resulting in OpenGL games not running on the graphics card, but rather the CPUs OpenGL implementation, which made games such as CS:GO and Minecraft run at 5 or 10 FPS.\n\n### The Solution\n\nTo get the latest Mesa git on Flatpak you can install it like this:\n\n```sh\nflatpak install org.freedesktop.Platform.GL.mesa-git org.freedesktop.Platform.GL32.mesa-git\n```\n\nThis will allow you to install the latest Mesa graphics drivers to allow applications to detect hardware properly and run better. Make sure when you are prompted for a version of Mesa to install you choose the latest version number that doesn't have \"beta\" at the end.\n\n### Usage\n\nOnce you've done this you can run your Flatpak like this to use Mesa git.\n\n```sh\nFLATPAK_GL_DRIVERS=mesa-git flatpak run com.valvesoftware.Steam\n```\n\nYou can also export `FLATPAK_GL_DRIVERS=mesa-git` in your `.bashrc` or `.profile` to use Mesa git for all Flatpak applications. This may cause issues though, and I'd personally advise you only use it when it's needed.\n"}