[Piglit] [PATCH 4/7] ARB_shading_language_packing: Add missing default precision qualifiers
Ian Romanick
idr at freedesktop.org
Wed Aug 21 08:37:02 PDT 2013
From: Ian Romanick <ian.d.romanick at intel.com>
Only the ES shaders needed default precision qualifiers, so all of
them are guarded by #ifdef GL_ES.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Cc: Paul Berry <stereotype441 at gmail.com>
---
generated_tests/gen_builtin_packing_tests.py | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/generated_tests/gen_builtin_packing_tests.py b/generated_tests/gen_builtin_packing_tests.py
index 547f74d..8fafc67 100644
--- a/generated_tests/gen_builtin_packing_tests.py
+++ b/generated_tests/gen_builtin_packing_tests.py
@@ -72,6 +72,10 @@ const_pack_template = Template(dedent("""\
}
[fragment shader]
+ #ifdef GL_ES
+ precision highp float;
+ #endif
+
in vec4 vert_color;
out vec4 frag_color;
@@ -130,6 +134,10 @@ const_unpack_template = Template(dedent("""\
}
[fragment shader]
+ #ifdef GL_ES
+ precision highp float;
+ #endif
+
in vec4 vert_color;
out vec4 frag_color;
@@ -189,6 +197,10 @@ vs_pack_template = Template(dedent("""\
}
[fragment shader]
+ #ifdef GL_ES
+ precision highp float;
+ #endif
+
in vec4 vert_color;
out vec4 frag_color;
@@ -259,6 +271,10 @@ vs_unpack_template = Template(dedent("""\
}
[fragment shader]
+ #ifdef GL_ES
+ precision highp float;
+ #endif
+
in vec4 vert_color;
out vec4 frag_color;
@@ -309,6 +325,8 @@ fs_pack_template = Template(dedent("""\
[fragment shader]
#ifndef GL_ES
#extension GL_ARB_shading_language_packing : require
+ #else
+ precision highp float;
#endif
const vec4 red = vec4(1, 0, 0, 1);
@@ -372,6 +390,8 @@ fs_unpack_template = Template(dedent("""\
[fragment shader]
#ifndef GL_ES
#extension GL_ARB_shading_language_packing : require
+ #else
+ precision highp float;
#endif
const vec4 red = vec4(1, 0, 0, 1);
--
1.8.1.4
More information about the Piglit
mailing list