[Mesa-dev] How to obtain OpenGL implementation/driver information?

Benoit Jacob bjacob at mozilla.com
Thu Feb 3 13:37:54 PST 2011


Hi,

I'm trying to see how to implement selective whitelisting/blacklisting of driver versions on X11 (my use case is to whitelist drivers for Firefox). The naive approach consists in creating an OpenGL context and calling glGetString(), however that is not optimal for me, for these reasons:
 * This has been enough to trigger crashes in the past.
 * This can take long (this affects the startup time of the browser).
 * This doesn't always give driver version information (at least the ATI blob doesn't seem to).

Ideally I want to be able to know the driver name, driver version, Mesa version, and any other thing that you think may be relevant. I need to get that information in a fast and safe way.

Is there a good solution to this problem? It might even be acceptable to assume that the X server is local, although of course I would prefer a solution that works with remote X.

I've been told to check xdriinfo, but this seems to only give the driver name and not a driver version. I've also been told that checking for GLX >= 1.4 would already ensure Mesa >= 7.9, is that correct?

Cheers,
Benoit


More information about the mesa-dev mailing list