This is proof that shader_runner_gles3 works. The test fill the window with red, then green, then blue.
Tested against mesa-gles3-5612c08ee with Intel Sandybridge. Signed-off-by: Chad Versace <[email protected]> --- .../execution/sanity.shader_test_gles3 | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tests/spec/glsl-es-3.00/execution/sanity.shader_test_gles3 diff --git a/tests/spec/glsl-es-3.00/execution/sanity.shader_test_gles3 b/tests/spec/glsl-es-3.00/execution/sanity.shader_test_gles3 new file mode 100644 index 0000000..e7e6ded --- /dev/null +++ b/tests/spec/glsl-es-3.00/execution/sanity.shader_test_gles3 @@ -0,0 +1,44 @@ +# Fill the window with red, then green, then blue. + +[require] +GL >= 3.0 es +GLSL >= 3.00 es + +[vertex shader] +#version 300 es + +in vec4 vertex; + +void main() { + gl_Position = vertex; +} + +[fragment shader] +#version 300 es + +uniform vec4 u_color; +out vec4 color; + +void main() { + color = u_color; +} + +[vertex data] +vertex/float/2 +-1.0 -1.0 + 1.0 -1.0 + 1.0 1.0 +-1.0 1.0 + +[test] +uniform vec4 u_color 1.0 0.0 0.0 1.0 +draw arrays GL_TRIANGLE_FAN 0 4 +probe all rgba 1.0 0.0 0.0 1.0 + +uniform vec4 u_color 0.0 1.0 0.0 1.0 +draw arrays GL_TRIANGLE_FAN 0 4 +probe all rgba 0.0 1.0 0.0 1.0 + +uniform vec4 u_color 0.0 0.0 1.0 1.0 +draw arrays GL_TRIANGLE_FAN 0 4 +probe all rgba 0.0 0.0 1.0 1.0 -- 1.7.11.7 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
