Status: fail
Result: fail
Detail | Value |
---|---|
returncode | 1 |
time | 0.288134098053 |
note | Returncode was 1 |
command | /home/mks-hackers/piglit/framework/../bin/glslparsertest tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/smoothstep-float-float-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/smoothstep-float-float-float.frag: 0(36) : error C1307: non constant expression for array size 0(37) : error C1307: non constant expression for array size 0(38) : error C1307: non constant expression for array size 0(39) : error C1307: non constant expression for array size 0(40) : error C1307: non constant expression for array size 0(41) : error C1307: non constant expression for array size 0(42) : error C1307: non constant expression for array size 0(43) : error C1307: non constant expression for array size 0(44) : error C1307: non constant expression for array size 0(45) : error C1307: non constant expression for array size 0(46) : error C1307: non constant expression for array size 0(47) : error C1307: non constant expression for array size 0(48) : error C1307: non constant expression for array size 0(49) : error C1307: non constant expression for array size 0(50) : error C1307: non constant expression for array size 0(51) : error C1307: non constant expression for array size 0(52) : error C1307: non constant expression for array size 0(53) : error C1307: non constant expression for array size 0(54) : error C1307: non constant expression for array size 0(55) : error C1307: non constant expression for array size 0(56) : error C1307: non constant expression for array size 0(57) : error C1307: non constant expression for array size 0(58) : error C1307: non constant expression for array size 0(59) : 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: * smoothstep(-1.9, -0.63333333, -2.0) => 0.0 * smoothstep(-1.9, -0.63333333, -0.66666669) => 0.9979589 * smoothstep(-1.9, -0.63333333, 0.66666669) => 1.0 * smoothstep(-1.9, -0.63333333, 2.0) => 1.0 * smoothstep(-1.9, 0.63333333, -2.0) => 0.0 * smoothstep(-1.9, 0.63333333, -0.66666669) => 0.4802677 * smoothstep(-1.9, 0.63333333, 0.66666669) => 1.0 * smoothstep(-1.9, 0.63333333, 2.0) => 1.0 * smoothstep(-1.9, 1.9, -2.0) => 0.0 * smoothstep(-1.9, 1.9, -0.66666669) => 0.24764164 * smoothstep(-1.9, 1.9, 0.66666669) => 0.75235838 * smoothstep(-1.9, 1.9, 2.0) => 1.0 * smoothstep(-0.63333333, 0.63333333, -2.0) => 0.0 * smoothstep(-0.63333333, 0.63333333, -0.66666669) => 0.0 * smoothstep(-0.63333333, 0.63333333, 0.66666669) => 1.0 * smoothstep(-0.63333333, 0.63333333, 2.0) => 1.0 * smoothstep(-0.63333333, 1.9, -2.0) => 0.0 * smoothstep(-0.63333333, 1.9, -0.66666669) => 0.0 * smoothstep(-0.63333333, 1.9, 0.66666669) => 0.5197323 * smoothstep(-0.63333333, 1.9, 2.0) => 1.0 * smoothstep(0.63333333, 1.9, -2.0) => 0.0 * smoothstep(0.63333333, 1.9, -0.66666669) => 0.0 * smoothstep(0.63333333, 1.9, 0.66666669) => 0.0020411173 * smoothstep(0.63333333, 1.9, 2.0) => 1.0 */ #version 120 void main() { float[distance(smoothstep(-1.9, -0.63333333, -2.0), 0.0) <= 0.0 ? 1 : -1] array0; float[distance(smoothstep(-1.9, -0.63333333, -0.66666669), 0.9979589) <= 9.9795889e-06 ? 1 : -1] array1; float[distance(smoothstep(-1.9, -0.63333333, 0.66666669), 1.0) <= 9.9999997e-06 ? 1 : -1] array2; float[distance(smoothstep(-1.9, -0.63333333, 2.0), 1.0) <= 9.9999997e-06 ? 1 : -1] array3; float[distance(smoothstep(-1.9, 0.63333333, -2.0), 0.0) <= 0.0 ? 1 : -1] array4; float[distance(smoothstep(-1.9, 0.63333333, -0.66666669), 0.4802677) <= 4.8026768e-06 ? 1 : -1] array5; float[distance(smoothstep(-1.9, 0.63333333, 0.66666669), 1.0) <= 9.9999997e-06 ? 1 : -1] array6; float[distance(smoothstep(-1.9, 0.63333333, 2.0), 1.0) <= 9.9999997e-06 ? 1 : -1] array7; float[distance(smoothstep(-1.9, 1.9, -2.0), 0.0) <= 0.0 ? 1 : -1] array8; float[distance(smoothstep(-1.9, 1.9, -0.66666669), 0.24764164) <= 2.4764163e-06 ? 1 : -1] array9; float[distance(smoothstep(-1.9, 1.9, 0.66666669), 0.75235838) <= 7.5235839e-06 ? 1 : -1] array10; float[distance(smoothstep(-1.9, 1.9, 2.0), 1.0) <= 9.9999997e-06 ? 1 : -1] array11; float[distance(smoothstep(-0.63333333, 0.63333333, -2.0), 0.0) <= 0.0 ? 1 : -1] array12; float[distance(smoothstep(-0.63333333, 0.63333333, -0.66666669), 0.0) <= 0.0 ? 1 : -1] array13; float[distance(smoothstep(-0.63333333, 0.63333333, 0.66666669), 1.0) <= 9.9999997e-06 ? 1 : -1] array14; float[distance(smoothstep(-0.63333333, 0.63333333, 2.0), 1.0) <= 9.9999997e-06 ? 1 : -1] array15; float[distance(smoothstep(-0.63333333, 1.9, -2.0), 0.0) <= 0.0 ? 1 : -1] array16; float[distance(smoothstep(-0.63333333, 1.9, -0.66666669), 0.0) <= 0.0 ? 1 : -1] array17; float[distance(smoothstep(-0.63333333, 1.9, 0.66666669), 0.5197323) <= 5.1973229e-06 ? 1 : -1] array18; float[distance(smoothstep(-0.63333333, 1.9, 2.0), 1.0) <= 9.9999997e-06 ? 1 : -1] array19; float[distance(smoothstep(0.63333333, 1.9, -2.0), 0.0) <= 0.0 ? 1 : -1] array20; float[distance(smoothstep(0.63333333, 1.9, -0.66666669), 0.0) <= 0.0 ? 1 : -1] array21; float[distance(smoothstep(0.63333333, 1.9, 0.66666669), 0.0020411173) <= 2.0411173e-08 ? 1 : -1] array22; float[distance(smoothstep(0.63333333, 1.9, 2.0), 1.0) <= 9.9999997e-06 ? 1 : -1] array23; gl_FragColor = vec4(array0.length() + array1.length() + array2.length() + array3.length() + array4.length() + array5.length() + array6.length() + array7.length() + array8.length() + array9.length() + array10.length() + array11.length() + array12.length() + array13.length() + array14.length() + array15.length() + array16.length() + array17.length() + array18.length() + array19.length() + array20.length() + array21.length() + array22.length() + array23.length()); } |