Enhanced OpenGL driver support in flatpak

Alexander Larsson alexl at redhat.com
Mon Feb 20 08:20:59 UTC 2017


On Sat, 2017-02-18 at 14:42 +0100, Bastien Nocera wrote:
> On Tue, 2017-02-07 at 09:52 +0100, Alexander Larsson wrote:
> > On Mon, 2017-02-06 at 11:36 +0100, Alexander Larsson wrote:
> > > 
> 
> <snip>
> > Then install the new runtime:
> > 
> > $ flatpak install gnome-buildbot org.freedesktop.Platform
> > 
> > Take note of the output from this. It should install the basic
> > runtime
> > (org.freedesktop.Platform/x86_64/1.4) as well as a subset of the
> > translations for it (org.freedesktop.Platform.Locale/x86_64/1.4),
> > but
> > it will also install any GL drivers from the repo that matches
> > what flatpak thinks is the active one. In my case it installs
> > org.freedesktop.Platform.GL.nvidia-375-26 to match the 375.26
> > nvidia driver that is loaded on the host. You can list the
> > drivers that flatpak thinks is active with "flatpak --gl-drivers".
> 
> I've been looking all over, and can't for the life of me find the
> sources for those NVidia extensions. The only thing I could find is
> the
> old make-nvidia-image.sh

I bet you're looking in the master branch of freedesktop-sdk-images, I
haven't copied all the changes from 1.4 there since nothing is building
that atm anyway. The source is here:

https://github.com/flatpak/freedesktop-sdk-images/blob/1.4/org.freedesktop.Platform.GL.nvidia.json.in

Combined with some sed magic in the makefile to build the various
versions.

> <snip>
> > To test the driver you can install and run glxinfo:
> > 
> > $ flatpak install gnome-buildbot org.freedesktop.GlxInfo
> > $ flatpak run org.freedesktop.GlxInfo
> > 
> > Which should give some output. This app also contains all the mesa
> > demos, so you can run e.g.:
> > 
> > $ flatpak run --command=glxgears org.freedesktop.GlxInfo
> 
> I should make a Flatpak of https://github.com/hadess/glarea-example
> :)

Isn't most of this in gtk3-demo (the opengl demo) anyway?

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl at redhat.com            alexander.larsson at gmail.com 
He's a witless chivalrous sorceror on a search for his missing sister. 
She's a sharp-shooting nymphomaniac archaeologist from aristocratic 
European stock. They fight crime! 



More information about the xdg-app mailing list