Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.263334035873 |
| note | Returncode was 1 |
| command | /Users/mks/Downloads/piglit/framework/../bin/glslparsertest tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/inversesqrt-float.frag pass 1.20 |
| errors |
|
| info | Returncode: 1
Errors:
Failed to compile fragment shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/inversesqrt-float.frag: ERROR: 0:18: Array size must be an integer constant expression
ERROR: 0:20: Use of undeclared identifier 'array2'
Output:
Shader source:
/* [config]
* expect_result: pass
* glsl_version: 1.20
* [end config]
*
* Check that the following test vectors are constant folded correctly:
* inversesqrt(0.1) => 3.1622777
* inversesqrt(0.73333335) => 1.1677485
* inversesqrt(1.3666667) => 0.85539889
* inversesqrt(2.0) => 0.70710677
*/
#version 120
void main()
{
float[distance(inversesqrt(0.1), 3.1622777) <= 3.1622778e-05 ? 1 : -1] array0;
float[distance(inversesqrt(0.73333335), 1.1677485) <= 1.1677485e-05 ? 1 : -1] array1;
float[distance(inversesqrt(1.3666667), 0.85539889) <= 8.5539887e-06 ? 1 : -1] array2;
float[distance(inversesqrt(2.0), 0.70710677) <= 7.0710676e-06 ? 1 : -1] array3;
gl_FragColor = vec4(array0.length() + array1.length() + array2.length() + array3.length());
}
|