[Piglit] [PATCH 2/7] gles-3.00: Fix various errors in varying-struct-centroid test

Ian Romanick idr at freedesktop.org
Wed Aug 21 08:37:00 PDT 2013


From: Ian Romanick <ian.d.romanick at intel.com>

This test has obviously been broken since 2d69390, which I alegedly
reviewed.  The name of the vertex shader input was changed from vertex
to piglit_vertex, but none of the references in the shader were changed.

Also, the default float precision qualifier was missing in the fragment
shader. *shock*

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/spec/glsl-es-3.00/execution/varying-struct-centroid.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-centroid.c b/tests/spec/glsl-es-3.00/execution/varying-struct-centroid.c
index e8734b9..6f6f7ac 100644
--- a/tests/spec/glsl-es-3.00/execution/varying-struct-centroid.c
+++ b/tests/spec/glsl-es-3.00/execution/varying-struct-centroid.c
@@ -88,15 +88,16 @@ static const char vs_text[] =
 	"centroid out vec4 ref_centroid;\n"
 	"void main()\n"
 	"{\n"
-	"  gl_Position = vertex;\n"
-	"  foo.v = vertex;\n"
-	"  foo_centroid.v = vertex;\n"
-	"  ref = vertex;\n"
-	"  ref_centroid = vertex;\n"
+	"  gl_Position = piglit_vertex;\n"
+	"  foo.v = piglit_vertex;\n"
+	"  foo_centroid.v = piglit_vertex;\n"
+	"  ref = piglit_vertex;\n"
+	"  ref_centroid = piglit_vertex;\n"
 	"}\n";
 
 static const char fs_text[] =
 	"#version 300 es\n"
+	"precision mediump float;\n"
 	"struct Foo {\n"
 	"  vec4 v;\n"
 	"};\n"
-- 
1.8.1.4



More information about the Piglit mailing list