Right now, Firefox has layers/compositing hardware acceleration enabled on Windows, and we have clean test runs on OS X too. However, enabling our implementation of accelerated composition using OpenGL on Linux currently causes a lot of test failures, and we’d be ecstatic if you would try to help us fix them.
So, let’s say you want to debug Firefox’s hardware acceleration test failures. Here is how to go about doing that:
- Build Mozilla. Follow the instructions in https://developer.mozilla.org/En/Developer_Guide/Build_Instructions.
- As part of step 1, you created your object directory. cd to it, and then execute the following:
This will take a while. Make sure to give the reftest window focus, because some tests require focus to finish.
- The reftest will generate a lot of output, all of which is saved in reftest.log, which is probably saved in your object directory. Grep the reftest for UNEXPECTED – each of these is failures. The output will also contain data: URIs for the output – both for the reference image (correct) and the actual output. Open those in Firefox and compare the images. This will hopefully give you hints as to what the problems are.
- Debug the problem(s). All of our OpenGL code is in gfx/layers/opengl and gfx/thebes/GL*. We are also available to help debug on irc.mozilla.org channel #gfx.