-
Notifications
You must be signed in to change notification settings - Fork 39
Testing Mesa for VC4
Mesa has several sets of regression tests used on it, to ensure that we continue producing high quality drivers. Because OpenGL has a large set of interfaces, most of our testing is done as integration tests rather than unit tests.
Pigilt is the primary testsuite that Mesa developers use. We built it when the the Khronos testsuite was hard to get access to, and have continued developing it. It's open source, liberally licensed, and has thorough coverage.
Once you build piglit, you can test it for vc4 using
./piglit-run.py gpu -o results/vc4
./piglit-summary-html.py --overwrite summary/mysum results/vc4
firefox summary/mysum/index.html
This will show many testcase failures. We don't have any expected-fail tag for tests, so most developers only use piglit for regression testing. Do the baseline above, edit and install Mesa, and then:
./piglit-run.py gpu -o results/vc4-with-change
./piglit-summary-html.py --overwrite summary/mysum results/vc4 results/vc4-with-change
firefox summary/mysum/changes.html
Mesa has unit tests under make check
. However, due to the difficulty of building unit tests in C, these are not widely used. For building unit tests in other drivers, you may want to see src/mesa/drivers/dri/i965/test_eu_compact.c
as an example.