[Piglit] [PATCH 2/3] ARB_explicit_uniform_location: location qualifier compiler test
Tapani Pälli
tapani.palli at intel.com
Wed Mar 12 04:22:27 PDT 2014
Test checks that shaders using a location qualifier for uniform
variable compile succesfully.
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
.../compiler/layout-01.frag | 18 ++++++++++++++++++
.../compiler/layout-01.vert | 15 +++++++++++++++
2 files changed, 33 insertions(+)
create mode 100644 tests/spec/arb_explicit_uniform_location/compiler/layout-01.frag
create mode 100644 tests/spec/arb_explicit_uniform_location/compiler/layout-01.vert
diff --git a/tests/spec/arb_explicit_uniform_location/compiler/layout-01.frag b/tests/spec/arb_explicit_uniform_location/compiler/layout-01.frag
new file mode 100644
index 0000000..fbcdbd0
--- /dev/null
+++ b/tests/spec/arb_explicit_uniform_location/compiler/layout-01.frag
@@ -0,0 +1,18 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// require_extensions: GL_ARB_explicit_uniform_location
+// [end config]
+//
+
+#version 110
+#extension GL_ARB_explicit_uniform_location: require
+vec4 color;
+layout(location = 42) uniform float test1;
+uniform float test2;
+uniform float test3;
+
+void main()
+{
+ color = vec4(1.0);
+}
diff --git a/tests/spec/arb_explicit_uniform_location/compiler/layout-01.vert b/tests/spec/arb_explicit_uniform_location/compiler/layout-01.vert
new file mode 100644
index 0000000..b635365
--- /dev/null
+++ b/tests/spec/arb_explicit_uniform_location/compiler/layout-01.vert
@@ -0,0 +1,15 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// require_extensions: GL_ARB_explicit_uniform_location
+// [end config]
+
+#version 110
+#extension GL_ARB_explicit_uniform_location: require
+vec4 vertex;
+layout(location = 41) uniform float foo;
+
+void main()
+{
+ gl_Position = vertex;
+}
--
1.8.5.3
More information about the Piglit
mailing list