[Piglit] [PATCH 5/6] Add GLSL link mismatched global initializer, 2 shaders
Ian Romanick
idr at freedesktop.org
Fri Oct 28 15:26:56 PDT 2011
From: Ian Romanick <ian.d.romanick at intel.com>
This is based on a test submitted by Gordon Jin in Mesa bugzilla
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
tests/all.tests | 1 +
tests/shaders/glsl-link-initializer-01d.vert | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
create mode 100644 tests/shaders/glsl-link-initializer-01d.vert
diff --git a/tests/all.tests b/tests/all.tests
index 5b8dfe9..a2c0f3c 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -466,6 +466,7 @@ add_plain_test(shaders, 'glsl-link-bug38015')
add_plain_test(shaders, 'glsl-link-empty-prog-01')
add_plain_test(shaders, 'glsl-link-empty-prog-02')
shaders['GLSL link single global initializer, 2 shaders'] = concurrent_test('glsl-link-test shaders/glsl-link-initializer-01a.vert shaders/glsl-link-initializer-01b.vert pass')
+shaders['GLSL link mismatched global initializer, 2 shaders'] = concurrent_test('glsl-link-test shaders/glsl-link-initializer-01b.vert shaders/glsl-link-initializer-01d.vert fail')
shaders['GLSL link mismatched global initializer, 3 shaders'] = concurrent_test('glsl-link-test shaders/glsl-link-initializer-01a.vert shaders/glsl-link-initializer-01b.vert shaders/glsl-link-initializer-01c.vert fail')
shaders['GLSL link mismatched global const initializer'] = concurrent_test('glsl-link-test shaders/glsl-link-initializer-02a.vert shaders/glsl-link-initializer-02b.vert fail')
shaders['GLSL link matched global initializer'] = concurrent_test('glsl-link-test shaders/glsl-link-initializer-04a.vert shaders/glsl-link-initializer-04b.vert pass')
diff --git a/tests/shaders/glsl-link-initializer-01d.vert b/tests/shaders/glsl-link-initializer-01d.vert
new file mode 100644
index 0000000..ad8f1b3
--- /dev/null
+++ b/tests/shaders/glsl-link-initializer-01d.vert
@@ -0,0 +1,6 @@
+float global_variable = 2.0;
+
+void main()
+{
+ gl_Position = gl_Vertex;
+}
--
1.7.6.4
More information about the Piglit
mailing list