[Piglit] [PATCH 0/9] generated tests: Add tests for GLSL 1.30

Paul Berry stereotype441 at gmail.com
Mon Aug 15 11:45:21 PDT 2011

The following patch series expands the generated tests in Piglit
to test built-in operators as well as functions and operators
that are new in GLSL 1.30.

The following operators are now tested: +, -, *, /, %, unary +, unary
-, >, <, >=, <=, ==, !=, &&, ||, ^^, ?:, ~, <<, >>, &, |, ^.

All of the built-in functions defined in GLSL 1.30 are tested
except for isnan, isinf, modf, and the special fragment shader
functions (dFdx, dFdy, fwidth, and ftransform).

I've validated all the new tests against the proprietary nVidia
driver for Linux.  It passes all tests except:

- asinh, which appears to fail due to improper handling of very
  large values of the argument.

- lshift and rshift, which on nVidia do not support mixing signed
  and unsigned types (despite GLSL 1.30 clearly stating that "one
  operand can be signed while the other is unsigned").

- tests requiring the values to be computed at compile time (so
  that they may be used to compute array sizes).  nVidia's
  drivers are known to fail these sorts of tests.

The intent of these tests is to support the developent effort of
supporting GLSL 1.30 in Mesa.  Mesa (on i965 gen5) currently
passes 2778/3800 of the generated tests.

[PATCH 1/9] generated tests: Make test generation happen in a deterministic order.
[PATCH 2/9] generated tests: Expand the range of ints and ivecs used in testing.
[PATCH 3/9] generated tests: Added tests for the 'notEqual' builtin.
[PATCH 4/9] generated tests: Add builtin tests using if.
[PATCH 5/9] Make uniform uint functions callable from piglit tests.
[PATCH 6/9] Add uint and uvec uniform support to shader_runner.
[PATCH 7/9] generated tests: Add uint and int tests for GLSL 1.30.
[PATCH 8/9] generated tests: Test operators that were introduced in GLSL 1.30
[PATCH 9/9] generated tests: Add tests for builtin functions introduced in GLSL 1.30

More information about the Piglit mailing list