[Piglit] [PATCH] Add a shader test for incomplete textures of multiple types.
Kenneth Graunke
kenneth at whitecape.org
Thu Jul 25 13:51:48 PDT 2013
Mesa currently hits an assertion failure when encountering a shader that
has incomplete textures and more than one texture type (1D, 2D, Cube,
and so on.)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=62698
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
...complete-textures-of-multiple-types.shader_test | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 tests/shaders/incomplete-textures-of-multiple-types.shader_test
diff --git a/tests/shaders/incomplete-textures-of-multiple-types.shader_test b/tests/shaders/incomplete-textures-of-multiple-types.shader_test
new file mode 100644
index 0000000..1826ab1
--- /dev/null
+++ b/tests/shaders/incomplete-textures-of-multiple-types.shader_test
@@ -0,0 +1,22 @@
+[require]
+GLSL >= 1.10
+
+[vertex shader]
+void main()
+{
+ gl_Position = gl_Vertex;
+}
+
+[fragment shader]
+uniform sampler2D tex;
+uniform samplerCube cube;
+
+void main()
+{
+ gl_FragColor = texture2D(tex, vec2(0.5)) + textureCube(cube, vec3(0.5));
+}
+
+[test]
+uniform int tex 0
+draw rect -1 -1 2 2
+relative probe rgb (0.5, 0.5) (0.0, 0.0, 0.0)
--
1.8.3.3
More information about the Piglit
mailing list