[Piglit] [PATCH 3/5] glsl-1.40: Add tests for removal of deprecated builtin uniforms.

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


---
 .../compiler/gl_BackLightModelProduct.frag         |   10 ++++++++++
 .../glsl-1.40/compiler/gl_BackLightProduct.frag    |   10 ++++++++++
 tests/spec/glsl-1.40/compiler/gl_BackMaterial.frag |   10 ++++++++++
 tests/spec/glsl-1.40/compiler/gl_ClipPlane.frag    |   10 ++++++++++
 tests/spec/glsl-1.40/compiler/gl_EyePlaneS.frag    |   10 ++++++++++
 tests/spec/glsl-1.40/compiler/gl_Fog.frag          |   10 ++++++++++
 .../compiler/gl_FrontLightModelProduct.frag        |   10 ++++++++++
 .../glsl-1.40/compiler/gl_FrontLightProduct.frag   |   10 ++++++++++
 .../spec/glsl-1.40/compiler/gl_FrontMaterial.frag  |   10 ++++++++++
 tests/spec/glsl-1.40/compiler/gl_LightSource.frag  |   10 ++++++++++
 tests/spec/glsl-1.40/compiler/gl_MaxLights.frag    |   10 ++++++++++
 tests/spec/glsl-1.40/compiler/gl_ObjectPlaneS.frag |   10 ++++++++++
 tests/spec/glsl-1.40/compiler/gl_Point.frag        |   10 ++++++++++
 .../glsl-1.40/compiler/gl_TextureEnvColor.frag     |   10 ++++++++++
 .../spec/glsl-1.40/compiler/gl_TextureMatrix.frag  |   10 ++++++++++
 15 files changed, 150 insertions(+), 0 deletions(-)
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_BackLightModelProduct.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_BackLightProduct.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_BackMaterial.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_ClipPlane.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_EyePlaneS.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_Fog.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FrontLightModelProduct.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FrontLightProduct.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_FrontMaterial.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_LightSource.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_MaxLights.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_ObjectPlaneS.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_Point.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_TextureEnvColor.frag
 create mode 100644 tests/spec/glsl-1.40/compiler/gl_TextureMatrix.frag

diff --git a/tests/spec/glsl-1.40/compiler/gl_BackLightModelProduct.frag b/tests/spec/glsl-1.40/compiler/gl_BackLightModelProduct.frag
new file mode 100644
index 0000000..77edbd7
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_BackLightModelProduct.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_BackLightModelProduct.sceneColor;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_BackLightProduct.frag b/tests/spec/glsl-1.40/compiler/gl_BackLightProduct.frag
new file mode 100644
index 0000000..64b7075
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_BackLightProduct.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_BackLightProduct[0].ambient;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_BackMaterial.frag b/tests/spec/glsl-1.40/compiler/gl_BackMaterial.frag
new file mode 100644
index 0000000..f80c2fb
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_BackMaterial.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_BackMaterial.emission;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_ClipPlane.frag b/tests/spec/glsl-1.40/compiler/gl_ClipPlane.frag
new file mode 100644
index 0000000..4aec417
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_ClipPlane.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_ClipPlane[0];
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_EyePlaneS.frag b/tests/spec/glsl-1.40/compiler/gl_EyePlaneS.frag
new file mode 100644
index 0000000..8a4b70b
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_EyePlaneS.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_EyePlaneS[0];
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_Fog.frag b/tests/spec/glsl-1.40/compiler/gl_Fog.frag
new file mode 100644
index 0000000..fa7237c
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_Fog.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_Fog.color;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FrontLightModelProduct.frag b/tests/spec/glsl-1.40/compiler/gl_FrontLightModelProduct.frag
new file mode 100644
index 0000000..8720621
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FrontLightModelProduct.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_FrontLightModelProduct.sceneColor;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FrontLightProduct.frag b/tests/spec/glsl-1.40/compiler/gl_FrontLightProduct.frag
new file mode 100644
index 0000000..9d0efff
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FrontLightProduct.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_FrontLightProduct[0].ambient;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_FrontMaterial.frag b/tests/spec/glsl-1.40/compiler/gl_FrontMaterial.frag
new file mode 100644
index 0000000..f293bd7
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_FrontMaterial.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_FrontMaterial.emission;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_LightSource.frag b/tests/spec/glsl-1.40/compiler/gl_LightSource.frag
new file mode 100644
index 0000000..34c4f21
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_LightSource.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_LightSource[0].ambient;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_MaxLights.frag b/tests/spec/glsl-1.40/compiler/gl_MaxLights.frag
new file mode 100644
index 0000000..e8fd69f
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_MaxLights.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+int func()
+{
+	return gl_MaxLights;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_ObjectPlaneS.frag b/tests/spec/glsl-1.40/compiler/gl_ObjectPlaneS.frag
new file mode 100644
index 0000000..1f054db
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_ObjectPlaneS.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_ObjectPlaneS[0];
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_Point.frag b/tests/spec/glsl-1.40/compiler/gl_Point.frag
new file mode 100644
index 0000000..c862059
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_Point.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+float func()
+{
+	return gl_Point.size;
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_TextureEnvColor.frag b/tests/spec/glsl-1.40/compiler/gl_TextureEnvColor.frag
new file mode 100644
index 0000000..98fc6ec
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_TextureEnvColor.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+vec4 func()
+{
+	return gl_TextureEnvColor[0];
+}
diff --git a/tests/spec/glsl-1.40/compiler/gl_TextureMatrix.frag b/tests/spec/glsl-1.40/compiler/gl_TextureMatrix.frag
new file mode 100644
index 0000000..4c56a48
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/gl_TextureMatrix.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+#version 140
+
+mat4 func()
+{
+	return gl_TextureMatrix[0];
+}
-- 
1.7.9.1



More information about the Piglit mailing list