<div dir="ltr">On 13 January 2013 20:11, Dave Airlie <span dir="ltr"><<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

From: Dave Airlie <<a href="mailto:airlied@redhat.com" target="_blank">airlied@redhat.com</a>><br>
<br>
These are promoted from GL_ARB_fragment_coord_conventions.<br>
<br>
GLSL 1.50 add two layout parameters for gl_FragCoord,<br>
test them on their own, and in combination.<br></blockquote><div><br></div><div>In general, for cases like this, I prefer to create a shader_runner execution test so that we can test that the feature under test compiles *and* executes correctly.  Can we do that for these tests?<br>

<br></div><div>I feel similarly about the two patches that follow ("glsl-1.50: check compiler accepts gl_PrimitiveID for fragment shader" and "glsl-1.50: add test for core profile argument to version").<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Signed-off-by: Dave Airlie <<a href="mailto:airlied@redhat.com" target="_blank">airlied@redhat.com</a>><br>
---<br>
 tests/spec/glsl-1.50/compiler/gl_FragCoord-both-layout.frag  | 12 ++++++++++++<br>
 .../glsl-1.50/compiler/gl_FragCoord-origin-upper-left.frag   | 12 ++++++++++++<br>
 .../compiler/gl_FragCoord-pixel-center-integer.frag          | 12 ++++++++++++<br>
 3 files changed, 36 insertions(+)<br>
 create mode 100644 tests/spec/glsl-1.50/compiler/gl_FragCoord-both-layout.frag<br>
 create mode 100644 tests/spec/glsl-1.50/compiler/gl_FragCoord-origin-upper-left.frag<br>
 create mode 100644 tests/spec/glsl-1.50/compiler/gl_FragCoord-pixel-center-integer.frag<br>
<br>
diff --git a/tests/spec/glsl-1.50/compiler/gl_FragCoord-both-layout.frag b/tests/spec/glsl-1.50/compiler/gl_FragCoord-both-layout.frag<br>
new file mode 100644<br>
index 0000000..1182c58<br>
--- /dev/null<br>
+++ b/tests/spec/glsl-1.50/compiler/gl_FragCoord-both-layout.frag<br>
@@ -0,0 +1,12 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.50<br>
+// [end config]<br>
+#version 150<br>
+<br>
+layout(origin_upper_left,pixel_center_integer) in vec4 gl_FragCoord;<br>
+<br>
+vec4 func()<br>
+{<br>
+       return gl_FragCoord;<br>
+}<br>
diff --git a/tests/spec/glsl-1.50/compiler/gl_FragCoord-origin-upper-left.frag b/tests/spec/glsl-1.50/compiler/gl_FragCoord-origin-upper-left.frag<br>
new file mode 100644<br>
index 0000000..2cfc684<br>
--- /dev/null<br>
+++ b/tests/spec/glsl-1.50/compiler/gl_FragCoord-origin-upper-left.frag<br>
@@ -0,0 +1,12 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.50<br>
+// [end config]<br>
+#version 150<br>
+<br>
+layout(origin_upper_left) in vec4 gl_FragCoord;<br>
+<br>
+vec4 func()<br>
+{<br>
+       return gl_FragCoord;<br>
+}<br>
diff --git a/tests/spec/glsl-1.50/compiler/gl_FragCoord-pixel-center-integer.frag b/tests/spec/glsl-1.50/compiler/gl_FragCoord-pixel-center-integer.frag<br>
new file mode 100644<br>
index 0000000..7f6fa17<br>
--- /dev/null<br>
+++ b/tests/spec/glsl-1.50/compiler/gl_FragCoord-pixel-center-integer.frag<br>
@@ -0,0 +1,12 @@<br>
+// [config]<br>
+// expect_result: pass<br>
+// glsl_version: 1.50<br>
+// [end config]<br>
+#version 150<br>
+<br>
+layout(pixel_center_integer) in vec4 gl_FragCoord;<br>
+<br>
+vec4 func()<br>
+{<br>
+       return gl_FragCoord;<br>
+}<br>
<span><font color="#888888">--<br>
1.8.1<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org" target="_blank">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div></div>