GPU acceleration support for Flatpak is finally coming to Fedora Asahi Remix! Try it out today:

sudo dnf copr enable @asahi/flatpak
sudo dnf install mesa-asahi-23.08-flatpak mesa-asahi-22.08-flatpak

Then launch any Flatpak from Flathub that uses the GPU.

(Note: supported on the FDO 22.08 and 23.08 runtimes only, which covers the vast majority of Flatpaks on Flathub. Flatpaks on the Fedora flatpak repo are not yet supported, as the special Fedora runtime has an incorrect extension config we can't use as-is, and would need separate Mesa builds once that is resolved.)

Fedora Flatpak Runtime GL extension config is missing versions, makes it unusable for non-Nvidia drivers (#31) · Issues · fedora / Special Interest Groups (SIGs) / Fedora Flatpak SIG / Fedora Flatpaks · GitLab

For Fedora Asahi Remix we are now shipping a host Flatpak GL extension for the Freedesktop runtime with our pre-release downstream Mesa drivers, to make Flatpaks work...

GitLab

@AsahiLinux in the next few days we will roll this out as a platform specific dependency of flatpak so it’s installed automatically when needed.

Other distros should be able to re-use the flatpak extension from the fedora RPMs with they don’t want to replicate the complex build process.

@AsahiLinux What is FDO?
@anselmschueler @AsahiLinux FreeDesktop Org (referring to the base runtime for flatpaks: https://docs.flatpak.org/en/latest/available-runtimes.html)
Available Runtimes

This page provides information about available Flatpak runtimes. It is primarily intended as information for application developers and distributors. There are currently three main runtimes availab...

Flatpak
@AsahiLinux Thanks, it works! But I do have to ask, how come it's packaged as a distro package rather than a Flatpak runtime? Wouldn't that make more sense?
@ydalton @AsahiLinux because an flatpak runtime extension distributed over flathub can’t be updated in sync with the the native kernel/mesa which is required to keep it working with GPU UABI changes