[Piglit] [PATCH 3/7] gles-3.0: Add missing default precision qualifiers

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


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

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/spec/ext_texture_array/compressed.c                               | 1 +
 tests/spec/ext_transform_feedback/structs.c                             | 1 +
 tests/spec/glsl-es-3.00/execution/sanity.shader_test                    | 1 +
 tests/spec/glsl-es-3.00/execution/varying-struct-arrays.shader_test     | 1 +
 tests/spec/glsl-es-3.00/execution/varying-struct-basic.shader_test      | 1 +
 .../glsl-es-3.00/execution/varying-struct-copy-function-fs.shader_test  | 1 +
 .../glsl-es-3.00/execution/varying-struct-copy-local-fs.shader_test     | 1 +
 .../glsl-es-3.00/execution/varying-struct-copy-local-vs.shader_test     | 1 +
 .../spec/glsl-es-3.00/execution/varying-struct-copy-out-vs.shader_test  | 1 +
 .../glsl-es-3.00/execution/varying-struct-copy-return-vs.shader_test    | 1 +
 .../glsl-es-3.00/execution/varying-struct-copy-uniform-vs.shader_test   | 2 ++
 .../glsl-es-3.00/execution/varying-struct-interpolation.shader_test     | 1 +
 .../linker/interface-blocks-member-type-mismatch.shader_test            | 1 +
 13 files changed, 14 insertions(+)

diff --git a/tests/spec/ext_texture_array/compressed.c b/tests/spec/ext_texture_array/compressed.c
index 7739f1e..abfb921 100644
--- a/tests/spec/ext_texture_array/compressed.c
+++ b/tests/spec/ext_texture_array/compressed.c
@@ -115,6 +115,7 @@ static const char fs_text[] =
 	"#define piglit_texture2DArray texture2DArray\n"
 #else // PIGLIT_USE_OPENGL_ES3
 	"#version 300 es\n"
+	"precision mediump float;\n"
 	"#define piglit_in in\n"
 	"#define piglit_texture2DArray texture\n"
 	"out vec4 piglit_FragColor;\n"
diff --git a/tests/spec/ext_transform_feedback/structs.c b/tests/spec/ext_transform_feedback/structs.c
index 3e05978..bb4f7ac 100644
--- a/tests/spec/ext_transform_feedback/structs.c
+++ b/tests/spec/ext_transform_feedback/structs.c
@@ -125,6 +125,7 @@ PIGLIT_GL_TEST_CONFIG_END
  */
 static const char gles3_header[] =
 	"#version 300 es\n"
+	"precision highp float;\n"
 	"#define DECLARE_VARYING(DIR, TYPE, NAME) flat DIR TYPE NAME\n"
 	"#define VARYING(NAME) NAME\n";
 
diff --git a/tests/spec/glsl-es-3.00/execution/sanity.shader_test b/tests/spec/glsl-es-3.00/execution/sanity.shader_test
index 1709d78..f08aa5f 100644
--- a/tests/spec/glsl-es-3.00/execution/sanity.shader_test
+++ b/tests/spec/glsl-es-3.00/execution/sanity.shader_test
@@ -12,6 +12,7 @@ void main() {
 }
 
 [fragment shader]
+precision highp float;
 uniform vec4 u_color;
 out vec4 color;
 
diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-arrays.shader_test b/tests/spec/glsl-es-3.00/execution/varying-struct-arrays.shader_test
index 5248fb8..88b7a8d 100644
--- a/tests/spec/glsl-es-3.00/execution/varying-struct-arrays.shader_test
+++ b/tests/spec/glsl-es-3.00/execution/varying-struct-arrays.shader_test
@@ -143,6 +143,7 @@ void main()
 
 [fragment shader]
 #version 300 es
+precision highp float;
 
 uniform float ref;
 
diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-basic.shader_test b/tests/spec/glsl-es-3.00/execution/varying-struct-basic.shader_test
index 4ecfdf6..00f1e05 100644
--- a/tests/spec/glsl-es-3.00/execution/varying-struct-basic.shader_test
+++ b/tests/spec/glsl-es-3.00/execution/varying-struct-basic.shader_test
@@ -61,6 +61,7 @@ void main()
 
 [fragment shader]
 #version 300 es
+precision highp float;
 
 uniform float ref;
 
diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-function-fs.shader_test b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-function-fs.shader_test
index b697bf3..be3d079 100644
--- a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-function-fs.shader_test
+++ b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-function-fs.shader_test
@@ -49,6 +49,7 @@ void main()
 
 [fragment shader]
 #version 300 es
+precision highp float;
 
 struct Foo
 {
diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-local-fs.shader_test b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-local-fs.shader_test
index 71f82ce..4e33c7c 100644
--- a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-local-fs.shader_test
+++ b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-local-fs.shader_test
@@ -49,6 +49,7 @@ void main()
 
 [fragment shader]
 #version 300 es
+precision highp float;
 
 struct Foo
 {
diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-local-vs.shader_test b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-local-vs.shader_test
index 6ebf0fe..861a369 100644
--- a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-local-vs.shader_test
+++ b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-local-vs.shader_test
@@ -51,6 +51,7 @@ void main()
 
 [fragment shader]
 #version 300 es
+precision highp float;
 
 struct Foo
 {
diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-out-vs.shader_test b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-out-vs.shader_test
index e732468..cdcd9d3 100644
--- a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-out-vs.shader_test
+++ b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-out-vs.shader_test
@@ -54,6 +54,7 @@ void main()
 
 [fragment shader]
 #version 300 es
+precision highp float;
 
 struct Foo
 {
diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-return-vs.shader_test b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-return-vs.shader_test
index 1c1a15e..f6d5fd9 100644
--- a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-return-vs.shader_test
+++ b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-return-vs.shader_test
@@ -54,6 +54,7 @@ void main()
 
 [fragment shader]
 #version 300 es
+precision highp float;
 
 struct Foo
 {
diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-uniform-vs.shader_test b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-uniform-vs.shader_test
index 9fef9f2..048fea2 100644
--- a/tests/spec/glsl-es-3.00/execution/varying-struct-copy-uniform-vs.shader_test
+++ b/tests/spec/glsl-es-3.00/execution/varying-struct-copy-uniform-vs.shader_test
@@ -26,6 +26,7 @@ GLSL ES >= 3.00
 
 [vertex shader]
 #version 300 es
+precision highp float;
 
 in vec4 vertex;
 struct Foo
@@ -47,6 +48,7 @@ void main()
 
 [fragment shader]
 #version 300 es
+precision highp float;
 
 struct Foo
 {
diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-interpolation.shader_test b/tests/spec/glsl-es-3.00/execution/varying-struct-interpolation.shader_test
index 4930dc1..653122c 100644
--- a/tests/spec/glsl-es-3.00/execution/varying-struct-interpolation.shader_test
+++ b/tests/spec/glsl-es-3.00/execution/varying-struct-interpolation.shader_test
@@ -50,6 +50,7 @@ void main()
 
 [fragment shader]
 #version 300 es
+precision highp float;
 
 struct Foo
 {
diff --git a/tests/spec/glsl-es-3.00/linker/interface-blocks-member-type-mismatch.shader_test b/tests/spec/glsl-es-3.00/linker/interface-blocks-member-type-mismatch.shader_test
index d586867..ba08e09 100644
--- a/tests/spec/glsl-es-3.00/linker/interface-blocks-member-type-mismatch.shader_test
+++ b/tests/spec/glsl-es-3.00/linker/interface-blocks-member-type-mismatch.shader_test
@@ -25,6 +25,7 @@ void main()
 
 [fragment shader]
 #version 300 es
+precision highp float;
 
 uniform block {
 	vec3 a; // a is vec4 in VS
-- 
1.8.1.4



More information about the Piglit mailing list