[Piglit] [PATCH 1/5] glsl-1.40: Add compiler tests for builtin in/out/uniforms.

Eric Anholt eric at anholt.net
Fri Mar 9 12:58:45 PST 2012


---
 tests/all.tests                                    |    9 +++++
 tests/spec/glsl-1.40/compiler/gl_BackColor.vert    |   10 ++++++
 .../glsl-1.40/compiler/gl_BackSecondaryColor.vert  |   10 ++++++
 .../glsl-1.40/compiler/gl_ClipDistance-fs.vert     |   10 ++++++
 .../glsl-1.40/compiler/gl_ClipDistance-vs.vert     |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_ClipVertex.vert   |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_Color-fs.frag     |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_Color-vs.vert     |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_FogCoord.vert     |   10 ++++++
 .../glsl-1.40/compiler/gl_FogFragCoord-fs.frag     |   10 ++++++
 .../glsl-1.40/compiler/gl_FogFragCoord-vs.frag     |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_FragColor.frag    |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_FragCoord.frag    |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_FragData.frag     |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_FragDepth.frag    |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_FrontColor.vert   |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_FrontFacing.frag  |   10 ++++++
 .../glsl-1.40/compiler/gl_FrontSecondaryColor.vert |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_InstanceID.vert   |   10 ++++++
 .../spec/glsl-1.40/compiler/gl_MaxClipPlanes.vert  |   10 ++++++
 .../glsl-1.40/compiler/gl_MaxTextureCoords.vert    |   10 ++++++
 .../glsl-1.40/compiler/gl_ModelViewMatrix.vert     |   10 ++++++
 .../spec/glsl-1.40/compiler/gl_MultiTexCoord0.vert |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_Normal.vert       |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_NormalMatrix.vert |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_PointCoord.frag   |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_PointSize.vert    |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_Position.vert     |   10 ++++++
 .../spec/glsl-1.40/compiler/gl_SecondaryColor.frag |   10 ++++++
 .../spec/glsl-1.40/compiler/gl_SecondaryColor.vert |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_Vertex.vert       |   10 ++++++
 tests/spec/glsl-1.40/compiler/gl_VertexID.vert     |   10 ++++++
 .../execution/gl_DepthRangeParameters.shader_test  |   35 ++++++++++++++++++++
 33 files changed, 354 insertions(+), 0 deletions(-)
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_BackColor.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_BackSecondaryColor.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_ClipDistance-fs.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_ClipDistance-vs.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_ClipVertex.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_Color-fs.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_Color-vs.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FogCoord.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FogFragCoord-fs.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FogFragCoord-vs.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FragColor.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FragCoord.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FragData.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FragDepth.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FrontColor.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FrontFacing.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FrontSecondaryColor.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_InstanceID.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_MaxClipPlanes.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_MaxTextureCoords.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_ModelViewMatrix.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_MultiTexCoord0.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_Normal.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_NormalMatrix.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_PointCoord.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_PointSize.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_Position.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_SecondaryColor.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_SecondaryColor.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_Vertex.vert
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_VertexID.vert
 create mode 100644 tests/spec/glsl-1.40/execution/gl_DepthRangeParameters.shader_test

diff --git a/tests/all.tests b/tests/all.tests
index 3906f58..2e8c5c4 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -971,6 +971,15 @@ add_concurrent_test(spec['glsl-1.30']['execution'], 'vertexid-drawelements')
 spec['glsl-1.30']['api'] = Group()
 add_concurrent_test(spec['glsl-1.30']['api'], 'getactiveattrib 130');
 
+# Group spec/glsl-1.40
+spec['glsl-1.40'] = Group()
+import_glsl_parser_tests(spec['glsl-1.40'],
+			 os.path.join(testsDir, 'spec', 'glsl-1.40'),
+			 ['compiler'])
+add_shader_test_dir(spec['glsl-1.40'],
+	            os.path.join(testsDir, 'spec', 'glsl-1.40'),
+		    recursive=True)
+
 # Group AMD_conservative_depth
 spec['AMD_conservative_depth'] = Group()
 import_glsl_parser_tests(spec['AMD_conservative_depth'],
diff --git a/tests/spec/glsl-1.40/compiler/gl_BackColor.vert b/tests/spec/glsl-1.40/compiler/gl_BackColor.vert
new file mode 100644
index 0000000..af5d343
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_BackColor.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_BackColor = vec4(0.0);
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_BackSecondaryColor.vert b/tests/spec/glsl-1.40/compiler/gl_BackSecondaryColor.vert
new file mode 100644
index 0000000..c9cec69
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_BackSecondaryColor.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_BackSecondaryColor = vec4(0.0);
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_ClipDistance-fs.vert b/tests/spec/glsl-1.40/compiler/gl_ClipDistance-fs.vert
new file mode 100644
index 0000000..55357e0
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_ClipDistance-fs.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+float func()
+{
+	return gl_ClipDistance[0];
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_ClipDistance-vs.vert b/tests/spec/glsl-1.40/compiler/gl_ClipDistance-vs.vert
new file mode 100644
index 0000000..d0d75ba
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_ClipDistance-vs.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_ClipDistance[0] = 0.0;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_ClipVertex.vert b/tests/spec/glsl-1.40/compiler/gl_ClipVertex.vert
new file mode 100644
index 0000000..7476eb2
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_ClipVertex.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_ClipVertex = vec4(0.0);
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_Color-fs.frag b/tests/spec/glsl-1.40/compiler/gl_Color-fs.frag
new file mode 100644
index 0000000..a1683e8
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_Color-fs.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_Color;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_Color-vs.vert b/tests/spec/glsl-1.40/compiler/gl_Color-vs.vert
new file mode 100644
index 0000000..a1683e8
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_Color-vs.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_Color;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FogCoord.vert b/tests/spec/glsl-1.40/compiler/gl_FogCoord.vert
new file mode 100644
index 0000000..40f112c
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FogCoord.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+float func()
+{
+	return gl_FogCoord;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FogFragCoord-fs.frag b/tests/spec/glsl-1.40/compiler/gl_FogFragCoord-fs.frag
new file mode 100644
index 0000000..f44d0c7
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FogFragCoord-fs.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+float func()
+{
+	return gl_FogFragCoord;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FogFragCoord-vs.frag b/tests/spec/glsl-1.40/compiler/gl_FogFragCoord-vs.frag
new file mode 100644
index 0000000..f44d0c7
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FogFragCoord-vs.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+float func()
+{
+	return gl_FogFragCoord;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FragColor.frag b/tests/spec/glsl-1.40/compiler/gl_FragColor.frag
new file mode 100644
index 0000000..b909702
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FragColor.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_FragColor = vec4(0.0);
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FragCoord.frag b/tests/spec/glsl-1.40/compiler/gl_FragCoord.frag
new file mode 100644
index 0000000..f010437
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FragCoord.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_FragCoord;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FragData.frag b/tests/spec/glsl-1.40/compiler/gl_FragData.frag
new file mode 100644
index 0000000..7568027
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FragData.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_FragData[0] = vec4(0.0);
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FragDepth.frag b/tests/spec/glsl-1.40/compiler/gl_FragDepth.frag
new file mode 100644
index 0000000..cea7544
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FragDepth.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_FragDepth = 0.0;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FrontColor.vert b/tests/spec/glsl-1.40/compiler/gl_FrontColor.vert
new file mode 100644
index 0000000..7660931
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FrontColor.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_FrontColor = vec4(0.0);
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FrontFacing.frag b/tests/spec/glsl-1.40/compiler/gl_FrontFacing.frag
new file mode 100644
index 0000000..403c8b1
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FrontFacing.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+bool func()
+{
+	return gl_FrontFacing;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FrontSecondaryColor.vert b/tests/spec/glsl-1.40/compiler/gl_FrontSecondaryColor.vert
new file mode 100644
index 0000000..632fa9a
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FrontSecondaryColor.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_FrontSecondaryColor = vec4(0.0);
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_InstanceID.vert b/tests/spec/glsl-1.40/compiler/gl_InstanceID.vert
new file mode 100644
index 0000000..1922bbc
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_InstanceID.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+int func()
+{
+	return gl_InstanceID;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_MaxClipPlanes.vert b/tests/spec/glsl-1.40/compiler/gl_MaxClipPlanes.vert
new file mode 100644
index 0000000..68531a1
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_MaxClipPlanes.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+int func()
+{
+	return gl_MaxClipPlanes;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_MaxTextureCoords.vert b/tests/spec/glsl-1.40/compiler/gl_MaxTextureCoords.vert
new file mode 100644
index 0000000..f19d041
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_MaxTextureCoords.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+int func()
+{
+	return gl_MaxTextureCoords;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_ModelViewMatrix.vert b/tests/spec/glsl-1.40/compiler/gl_ModelViewMatrix.vert
new file mode 100644
index 0000000..94a1b90
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_ModelViewMatrix.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+mat4 func()
+{
+	return gl_ModelViewMatrix;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_MultiTexCoord0.vert b/tests/spec/glsl-1.40/compiler/gl_MultiTexCoord0.vert
new file mode 100644
index 0000000..1560679
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_MultiTexCoord0.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_MultiTexCoord0;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_Normal.vert b/tests/spec/glsl-1.40/compiler/gl_Normal.vert
new file mode 100644
index 0000000..1a7f509
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_Normal.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec3 func()
+{
+	return gl_Normal;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_NormalMatrix.vert b/tests/spec/glsl-1.40/compiler/gl_NormalMatrix.vert
new file mode 100644
index 0000000..72c3481
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_NormalMatrix.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+mat3 func()
+{
+	return gl_NormalMatrix;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_PointCoord.frag b/tests/spec/glsl-1.40/compiler/gl_PointCoord.frag
new file mode 100644
index 0000000..3745a3e
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_PointCoord.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec2 func()
+{
+	return gl_PointCoord;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_PointSize.vert b/tests/spec/glsl-1.40/compiler/gl_PointSize.vert
new file mode 100644
index 0000000..7a1ce5e
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_PointSize.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_PointSize = 0.0;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_Position.vert b/tests/spec/glsl-1.40/compiler/gl_Position.vert
new file mode 100644
index 0000000..32236c3
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_Position.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+void func()
+{
+	gl_Position = vec4(0.0);
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_SecondaryColor.frag b/tests/spec/glsl-1.40/compiler/gl_SecondaryColor.frag
new file mode 100644
index 0000000..b0802c0
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_SecondaryColor.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_SecondaryColor;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_SecondaryColor.vert b/tests/spec/glsl-1.40/compiler/gl_SecondaryColor.vert
new file mode 100644
index 0000000..b0802c0
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_SecondaryColor.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_SecondaryColor;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_Vertex.vert b/tests/spec/glsl-1.40/compiler/gl_Vertex.vert
new file mode 100644
index 0000000..248692b
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_Vertex.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_Vertex;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_VertexID.vert b/tests/spec/glsl-1.40/compiler/gl_VertexID.vert
new file mode 100644
index 0000000..362cd22
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_VertexID.vert
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+int func()
+{
+	return gl_VertexID;
+}
diff --git a/tests/spec/glsl-1.40/execution/gl_DepthRangeParameters.shader_test b/tests/spec/glsl-1.40/execution/gl_DepthRangeParameters.shader_test
new file mode 100644
index 0000000..eec89fc
--- /dev/null
+++ b/tests/spec/glsl-1.40/execution/gl_DepthRangeParameters.shader_test
@@ -0,0 +1,35 @@
+[require]
+GLSL >= 1.40
+
+[vertex shader]
+#version 140
+
+in vec4 vertex;
+
+void main()
+{
+	gl_Position = vertex;
+}
+
+[fragment shader]
+#version 140
+
+void main()
+{
+	float a = gl_DepthRange.near / 2 + 0.25;
+	float b = gl_DepthRange.far / 2 + 0.25;
+	float c = gl_DepthRange.diff / 2 + 0.25;
+
+	gl_FragColor = vec4(a, b, c, 1.0);
+}
+
+[vertex data]
+vertex/float/2
+-1.0 -1.0
+ 1.0 -1.0
+ 1.0  1.0
+-1.0  1.0
+
+[test]
+draw arrays GL_TRIANGLE_FAN 0 4
+probe all rgba 0.25 0.75 0.75 1.0
-- 
1.7.9.1



More information about the Piglit mailing list