Results for spec/glsl-1.20/compiler/built-in-functions/op-mult-mat2-vec2.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.306697845459
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-mat2-vec2.frag pass 1.20
errors
  • Failed to compile fragment shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/op-mult-mat2-vec2.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
info
Returncode: 1

Errors:
Failed to compile fragment shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/op-mult-mat2-vec2.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:
 * (mat2(1.6, 1.53, 0.75999999, -1.0) * vec2(-0.1, -1.2)) => vec2(-1.072, 1.0470001)
 * (mat2(1.6, 1.53, 0.75999999, -1.0) * vec2(-0.41999999, 0.47999999)) => vec2(-0.30720001, -1.1226)
 * (mat2(-0.13, -1.4, -0.87, 1.4) * vec2(-0.1, -1.2)) => vec2(1.057, -1.5400001)
 * (mat2(-0.13, -1.4, -0.87, 1.4) * vec2(-0.41999999, 0.47999999)) => vec2(-0.36300001, 1.26)
 */
#version 120

void main()
{
  float[distance((mat2(1.6, 1.53, 0.75999999, -1.0) * vec2(-0.1, -1.2)), vec2(-1.072, 1.0470001)) <= 1.4984636e-05 ? 1 : -1] array0;
  float[distance((mat2(1.6, 1.53, 0.75999999, -1.0) * vec2(-0.41999999, 0.47999999)), vec2(-0.30720001, -1.1226)) <= 1.1638739e-05 ? 1 : -1] array1;
  float[distance((mat2(-0.13, -1.4, -0.87, 1.4) * vec2(-0.1, -1.2)), vec2(1.057, -1.5400001)) <= 1.8678462e-05 ? 1 : -1] array2;
  float[distance((mat2(-0.13, -1.4, -0.87, 1.4) * vec2(-0.41999999, 0.47999999)), vec2(-0.36300001, 1.26)) <= 1.3112471e-05 ? 1 : -1] array3;
  gl_FragColor = vec4(array0.length() + array1.length() + array2.length() + array3.length());
}

Back to summary