tests: Add tests for usage of length() method on unsized array
From GLSL 4.60.7 spec, section 4.1.9 "Arrays":
If an array has not been explicitly sized and is the last declared
member of a shader storage block, the value returned will not be a
constant expression and will be determined at runtime based on the
size of the buffer object providing storage for the block. Such
arrays are runtime sized.
...
The length() method cannot be called on an array that is not
runtime sized and also has not yet been explicitly sized; this
results in a compile-time error.
Signed-off-by: Yevhenii Kolesnikov yevhenii.kolesnikov@globallogic.com
Fix: mesa!4131 (closed)
Edited by Timothy Arceri