[Piglit] [PATCH] arb_explicit_location: test for index specified without location

Dave Airlie airlied at gmail.com
Wed Mar 28 04:03:18 PDT 2012


From: Dave Airlie <airlied at redhat.com>

The ARB_explicit_location says it is illegal to specify index without
location in the layout.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 .../1.20/compiler/index-01.frag                    |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 tests/spec/arb_explicit_attrib_location/1.20/compiler/index-01.frag

diff --git a/tests/spec/arb_explicit_attrib_location/1.20/compiler/index-01.frag b/tests/spec/arb_explicit_attrib_location/1.20/compiler/index-01.frag
new file mode 100644
index 0000000..d42689e
--- /dev/null
+++ b/tests/spec/arb_explicit_attrib_location/1.20/compiler/index-01.frag
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.20
+// require_extensions: GL_ARB_explicit_attrib_location, GL_ARB_blend_func_extended
+// [end config]
+//
+// test that layout with just an index specified is rejected
+
+#version 120
+#extension GL_ARB_explicit_attrib_location: require
+layout(index = 0) out vec4 color;
+
+void main()
+{
+	color = vec4(1.0);
+}
-- 
1.7.7.6



More information about the Piglit mailing list