[Mesa-dev] WebGL test suite, and whitelisting drivers / OpenGL implementations in Firefox

Benoit Jacob bjacob at mozilla.com
Mon Jan 17 05:57:42 PST 2011


On 01/17/2011 08:28 AM, Alex Buell wrote:
> On Sun, 2011-01-16 at 16:29 -0500, Benoit Jacob wrote:
>
>> 1. Download a nightly build of Firefox 4 there, and untar it:
>>
>>      http://nightly.mozilla.org/
>>
>> 2. Run it with the MOZ_GLX_IGNORE_BLACKLIST env variable, e.g.:
>>
>>      $ MOZ_GLX_IGNORE_BLACKLIST=1 ./firefox -P -no-remote
>>
>>      (-P allows you to create a fresh new profile and -no-remote
>>      prevents attaching to existing firefox instance).
>>
>> 3. Go to this URL:
>
>> https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/webgl-conformance-tests.html
>
> I followed this to the letter, but FF4 did not detect WebGL on my
> laptop.

There are two possible reasons for this.
  * first, can you please go to about:config and check that 
webgl.enabled_for_all_sites is true.
  * otherwise, that means that WebGL contexts fail to initialize. We 
require OpenGL 2.1, and once we get a OpenGL context, we perform a few 
basic tests for e.g. the number of texture image units.

Do you see any error message in the terminal, or in Firefox's error 
consosle (Ctrl+Shift+J) ?

> I guess Gentoo needs to add OSMesa to their list of packages to
> test.

If you want to use OSMesa for WebGL rendering, you need to let Firefox 
know about the library filename by going to about:config and setting 
webgl.osmesalib (for example libOSMesa.so.6)

Benoit


More information about the mesa-dev mailing list