[Piglit] [PATCH 1/6] Fix fs-clip-distance-interpolated.shader_test (implicit array size rules).

Paul Berry stereotype441 at gmail.com
Sun Sep 4 11:34:28 PDT 2011


This test accesses gl_ClipDistance using a non-constant array index.
GLSL requires that such accesses only be made to explicitly sized
arrays.  So add an explicit declaration of the size of
gl_ClipDistance.
---
 .../fs-clip-distance-interpolated.shader_test      |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/spec/glsl-1.30/execution/clipping/fs-clip-distance-interpolated.shader_test b/tests/spec/glsl-1.30/execution/clipping/fs-clip-distance-interpolated.shader_test
index de05ab1..0721e7b 100644
--- a/tests/spec/glsl-1.30/execution/clipping/fs-clip-distance-interpolated.shader_test
+++ b/tests/spec/glsl-1.30/execution/clipping/fs-clip-distance-interpolated.shader_test
@@ -45,6 +45,7 @@ void main()
 #version 130
 uniform vec4 transform[6];
 in vec4 vertex;
+in float gl_ClipDistance[6];
 
 void main()
 {
-- 
1.7.6



More information about the Piglit mailing list