<div dir="ltr">On 2 October 2013 11:04, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>
<br>
NVIDIA (304.64 on GTX 260) fails all of the 1.10, 1.20, and 1.30 tests<br>
because they fail to recognize the layout keyword at all.  Paul has<br>
suggested that adding<br>
<br>
    #extension GL_ARB_fragment_coord_conventions: require<br>
<br>
may work around this issue in some cases.<br>
<br>
Signed-off-by: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>
Cc: Wen Su <<a href="mailto:WSu@nvidia.com">WSu@nvidia.com</a>><br>
Cc: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>
---<br>
Paul,<br>
<br>
Are there other geometry shader tests that I should add?<br></blockquote><div><br></div><div>This patch is:<br><br></div><div>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>
<br>I don't see any need to add more geometry shader tests at the moment.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
 .../compiler/1.10/layout-location.frag             | 14 ++++++++++++++<br>
 .../compiler/1.10/layout-location.vert             | 15 +++++++++++++++<br>
 .../compiler/1.20/layout-location.frag             | 14 ++++++++++++++<br>
 .../compiler/1.20/layout-location.vert             | 15 +++++++++++++++<br>
 .../compiler/1.30/layout-location.frag             | 14 ++++++++++++++<br>
 .../compiler/1.30/layout-location.vert             | 15 +++++++++++++++<br>
 .../compiler/1.40/layout-location.frag             | 15 +++++++++++++++<br>
 .../compiler/1.40/layout-location.vert             | 16 ++++++++++++++++<br>
 .../compiler/1.50/layout-location.frag             | 15 +++++++++++++++<br>
 .../compiler/1.50/layout-location.geom             | 22 ++++++++++++++++++++++<br>
 .../compiler/1.50/layout-location.vert             | 16 ++++++++++++++++<br>
 11 files changed, 171 insertions(+)<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.10/layout-location.frag<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.10/layout-location.vert<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.20/layout-location.frag<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.20/layout-location.vert<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.30/layout-location.frag<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.30/layout-location.vert<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.40/layout-location.frag<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.40/layout-location.vert<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.frag<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.geom<br>
 create mode 100644 tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.vert<br>
<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.10/layout-location.frag b/tests/spec/arb_separate_shader_objects/compiler/1.10/layout-location.frag<br>
new file mode 100644<br>
index 0000000..b91faa1<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.10/layout-location.frag<br>
@@ -0,0 +1,14 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.10<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 110<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+layout(location = 0) in vec4 a;<br>
+<br>
+void main()<br>
+{<br>
+    gl_FragColor = a;<br>
+}<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.10/layout-location.vert b/tests/spec/arb_separate_shader_objects/compiler/1.10/layout-location.vert<br>
new file mode 100644<br>
index 0000000..ecc8e78<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.10/layout-location.vert<br>
@@ -0,0 +1,15 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.10<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 110<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+layout(location = 0) out vec4 a;<br>
+<br>
+void main()<br>
+{<br>
+    gl_Position = gl_Vertex;<br>
+    a = vec4(0);<br>
+}<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.20/layout-location.frag b/tests/spec/arb_separate_shader_objects/compiler/1.20/layout-location.frag<br>
new file mode 100644<br>
index 0000000..0090a9f<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.20/layout-location.frag<br>
@@ -0,0 +1,14 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.20<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 120<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+layout(location = 0) in vec4 a;<br>
+<br>
+void main()<br>
+{<br>
+    gl_FragColor = a;<br>
+}<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.20/layout-location.vert b/tests/spec/arb_separate_shader_objects/compiler/1.20/layout-location.vert<br>
new file mode 100644<br>
index 0000000..d432b81<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.20/layout-location.vert<br>
@@ -0,0 +1,15 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.20<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 120<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+layout(location = 0) out vec4 a;<br>
+<br>
+void main()<br>
+{<br>
+    gl_Position = gl_Vertex;<br>
+    a = vec4(0);<br>
+}<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.30/layout-location.frag b/tests/spec/arb_separate_shader_objects/compiler/1.30/layout-location.frag<br>
new file mode 100644<br>
index 0000000..a0dde35<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.30/layout-location.frag<br>
@@ -0,0 +1,14 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.30<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 130<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+layout(location = 0) in vec4 a;<br>
+<br>
+void main()<br>
+{<br>
+    gl_FragColor = a;<br>
+}<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.30/layout-location.vert b/tests/spec/arb_separate_shader_objects/compiler/1.30/layout-location.vert<br>
new file mode 100644<br>
index 0000000..104dc71<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.30/layout-location.vert<br>
@@ -0,0 +1,15 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.30<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 130<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+layout(location = 0) out vec4 a;<br>
+<br>
+void main()<br>
+{<br>
+    gl_Position = gl_Vertex;<br>
+    a = vec4(0);<br>
+}<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.40/layout-location.frag b/tests/spec/arb_separate_shader_objects/compiler/1.40/layout-location.frag<br>
new file mode 100644<br>
index 0000000..683892d<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.40/layout-location.frag<br>
@@ -0,0 +1,15 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.40<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 140<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+out vec4 fragcolor;<br>
+layout(location = 0) in vec4 a;<br>
+<br>
+void main()<br>
+{<br>
+    fragcolor = a;<br>
+}<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.40/layout-location.vert b/tests/spec/arb_separate_shader_objects/compiler/1.40/layout-location.vert<br>
new file mode 100644<br>
index 0000000..8c55c4a<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.40/layout-location.vert<br>
@@ -0,0 +1,16 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.40<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 140<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+in vec4 piglit_vertex;<br>
+layout(location = 0) out vec4 a;<br>
+<br>
+void main()<br>
+{<br>
+    gl_Position = piglit_vertex;<br>
+    a = vec4(0);<br>
+}<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.frag b/tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.frag<br>
new file mode 100644<br>
index 0000000..63fafe7<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.frag<br>
@@ -0,0 +1,15 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.50<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 150<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+out vec4 fragcolor;<br>
+layout(location = 0) in vec4 a;<br>
+<br>
+void main()<br>
+{<br>
+    fragcolor = a;<br>
+}<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.geom b/tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.geom<br>
new file mode 100644<br>
index 0000000..f34cf2e<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.geom<br>
@@ -0,0 +1,22 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.50<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 150<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+layout(points) in;<br>
+layout(points) out;<br>
+<br>
+layout(location = 0) in vec4 in_position;<br>
+<br>
+layout(location = 0) out vec4 position;<br>
+layout(location = 1) out vec4 color;<br>
+<br>
+void main()<br>
+{<br>
+    position = in_position;<br>
+    color = vec4(0);<br>
+    EmitVertex();<br>
+}<br>
diff --git a/tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.vert b/tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.vert<br>
new file mode 100644<br>
index 0000000..9885718<br>
--- /dev/null<br>
+++ b/tests/spec/arb_separate_shader_objects/compiler/1.50/layout-location.vert<br>
@@ -0,0 +1,16 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.50<br>
+// require_extensions: GL_ARB_separate_shader_objects<br>
+// [end config]<br>
+#version 150<br>
+#extension GL_ARB_separate_shader_objects: require<br>
+<br>
+in vec4 piglit_vertex;<br>
+layout(location = 0) out vec4 a;<br>
+<br>
+void main()<br>
+{<br>
+    gl_Position = piglit_vertex;<br>
+    a = vec4(0);<br>
+}<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.1.4<br>
<br>
</font></span></blockquote></div><br></div></div>