[Piglit] [PATCH v2] gles2: add test to render a point without vertex attributes

Tapani Pälli tapani.palli at intel.com
Wed Oct 1 04:07:31 PDT 2014


v2: instead of c, make it a shader_runner_gles2 test

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
 .../gles-2.0/glsl-no-vertex-attribs.shader_test    | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test

diff --git a/tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test b/tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test
new file mode 100644
index 0000000..36a6b4c
--- /dev/null
+++ b/tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test
@@ -0,0 +1,25 @@
+#
+# Tests that we can succesfully render a point with OpenGL ES 2.0
+# without having any vertex attributes enabled.
+#
+[require]
+GL ES >= 2.0
+GLSL ES >= 1.00
+SIZE 1 1
+
+[vertex shader]
+void main()
+{
+	gl_PointSize = 1.0;
+	gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
+}
+
+[fragment shader]
+void main()
+{
+	gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
+}
+
+[test]
+draw arrays GL_POINTS 0 1
+relative probe rgba (0.0, 0.0) (0.0, 1.0, 0.0, 1.0)
-- 
1.9.3



More information about the Piglit mailing list