summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2011-07-22 13:10:01 -0700
committerPaul Berry <stereotype441@gmail.com>2011-08-05 13:01:30 -0700
commitcccc419e2c88f0c4d34de4ae4e49db09ecb6f88e (patch)
tree4f510f7751cef97d6dd9d22d316f54be87ce5aa9 /README
parentfb2d09ee1b0eb57a20595326d917776be650ca3f (diff)
Add comprehensive tests of builtin functions with uniform input.
This patch adds 462 tests to piglit, which comprehensively test the behavior of GLSL built-in functions on vertex and fragment shaders. The test vectors are auto-generated in Python, by using the numpy library to simulate the behavior of the built-in functions on a variety of inputs (in builtin_function.py), and then producing shader_runner tests to verify the expected behavior (in gen_builtin_uniform_tests.py). Test generation happens as part of the piglit build process. To run the test generation step by itself, use "make gen-tests" from the root of the piglit tree (after configuring using cmake). The generated tests may be found in generated_tests/spec. The auto-generation code depends on Python 2.6 and on the numpy library (www.numpy.org). I've updated the README to reflect these dependencies, and added code to CMakeLists.txt to check for them at configure time. (Note: other parts of Piglit already depend on Python 2.6, but the dependency wasn't previously explicit).
Diffstat (limited to 'README')
-rw-r--r--README3
1 files changed, 2 insertions, 1 deletions
diff --git a/README b/README
index bf5c157dd..1f567e37b 100644
--- a/README
+++ b/README
@@ -28,7 +28,8 @@ The original tests have been taken from
First of all, you need to make sure that the following are installed:
- - Python 2.4 or greater
+ - Python 2.6 or greater
+ - numpy (http://www.numpy.org)
- cmake (http://www.cmake.org)
- GL, glu and glut libraries and development packages (i.e. headers)
- X11 libraries and development packages (i.e. headers)