summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-08-31 11:37:18 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-09-01 11:01:52 -0700
commit75819c13af2ed54397a4391821f5febaf708a6c2 (patch)
tree0a58fdaa483fec674f320409ce2338716f0afa59
parente6a151baa18cfe48b5142a634af482f3b55fd908 (diff)
Fix TCS input array length in tcs-input-read-nonconst* tests.
According to the ARB_tessellation_shader spec, "Declaring an array size is optional. If no size is specified, it will be taken from the implementation-dependent maximum patch size (gl_MaxPatchVertices). If a size is specified, it must match the maximum patch size; otherwise, a compile or link error will occur." Just drop the explicit array size. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
-rw-r--r--tests/spec/arb_tessellation_shader/execution/tcs-input-read-nonconst-interface.shader_test2
-rw-r--r--tests/spec/arb_tessellation_shader/execution/tcs-input-read-nonconst.shader_test2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/spec/arb_tessellation_shader/execution/tcs-input-read-nonconst-interface.shader_test b/tests/spec/arb_tessellation_shader/execution/tcs-input-read-nonconst-interface.shader_test
index c83e6fb05..f44c52843 100644
--- a/tests/spec/arb_tessellation_shader/execution/tcs-input-read-nonconst-interface.shader_test
+++ b/tests/spec/arb_tessellation_shader/execution/tcs-input-read-nonconst-interface.shader_test
@@ -23,7 +23,7 @@ void main()
in block {
float v;
-} verts[2];
+} verts[];
layout(vertices = 1) out;
void main()
diff --git a/tests/spec/arb_tessellation_shader/execution/tcs-input-read-nonconst.shader_test b/tests/spec/arb_tessellation_shader/execution/tcs-input-read-nonconst.shader_test
index 2e3d1ffca..591c9f1ee 100644
--- a/tests/spec/arb_tessellation_shader/execution/tcs-input-read-nonconst.shader_test
+++ b/tests/spec/arb_tessellation_shader/execution/tcs-input-read-nonconst.shader_test
@@ -19,7 +19,7 @@ void main()
#version 150
#extension GL_ARB_tessellation_shader : require
-in float v[2];
+in float v[];
layout(vertices = 1) out;
void main()