Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.268836975098 |
| note | Returncode was 1 |
| command | /home/mks-hackers/piglit/framework/../bin/glslparsertest tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/op-mult-vec2-mat4x2.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/op-mult-vec2-mat4x2.frag: 0(16) : error C1307: non constant expression for array size
0(17) : error C1307: non constant expression for array size
0(18) : error C1307: non constant expression for array size
0(19) : error C1307: non constant expression for array size
Output:
Shader source:
/* [config]
* expect_result: pass
* glsl_version: 1.20
* [end config]
*
* Check that the following test vectors are constant folded correctly:
* (vec2(-0.1, -1.2) * mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51)) => vec4(1.211, 1.911, -0.38100001, 1.7470001)
* (vec2(-0.1, -1.2) * mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94)) => vec4(-0.78100002, -0.16100003, -0.19700001, -1.288)
* (vec2(-0.41999999, 0.47999999) * mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51)) => vec4(-1.3169999, -0.3642, -0.22019999, -0.99779993)
* (vec2(-0.41999999, 0.47999999) * mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94)) => vec4(-0.57539994, 0.81419998, -0.054599993, -0.2208)
*/
#version 120
void main()
{
float[distance((vec2(-0.1, -1.2) * mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51)), vec4(1.211, 1.911, -0.38100001, 1.7470001)) <= 2.8836803e-05 ? 1 : -1] array0;
float[distance((vec2(-0.1, -1.2) * mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94)), vec4(-0.78100002, -0.16100003, -0.19700001, -1.288)) <= 1.527624e-05 ? 1 : -1] array1;
float[distance((vec2(-0.41999999, 0.47999999) * mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51)), vec4(-1.3169999, -0.3642, -0.22019999, -0.99779993)) <= 1.7062306e-05 ? 1 : -1] array2;
float[distance((vec2(-0.41999999, 0.47999999) * mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94)), vec4(-0.57539994, 0.81419998, -0.054599993, -0.2208)) <= 1.0226145e-05 ? 1 : -1] array3;
gl_FragColor = vec4(array0.length() + array1.length() + array2.length() + array3.length());
}
|