--- .../execution/built-in-constants.shader_test | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/spec/glsl-1.10/execution/built-in-constants.shader_test
diff --git a/tests/spec/glsl-1.10/execution/built-in-constants.shader_test b/tests/spec/glsl-1.10/execution/built-in-constants.shader_test new file mode 100644 index 0000000..411b570 --- /dev/null +++ b/tests/spec/glsl-1.10/execution/built-in-constants.shader_test @@ -0,0 +1,23 @@ +[require] +GLSL >= 1.10 + +[vertex shader] +void main() +{ + gl_Position = gl_Vertex; + // front color values should all be >= 1.0 + gl_FrontColor = vec4(gl_MaxLights, gl_MaxClipPlanes, + gl_MaxTextureUnits, + gl_MaxTextureCoords); +} + + +[fragment shader] +void main() +{ + gl_FragColor = gl_Color; +} + +[test] +draw rect -1 -1 2 2 +relative probe rgba (0.5, 0.5) (1.0, 1.0, 1.0, 1.0) -- 2.7.4 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit