Results for spec/glsl-1.20/compiler/built-in-functions/op-add-float-mat2.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.300364971161
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/op-add-float-mat2.vert pass 1.20
errors
  • Failed to compile vertex shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/op-add-float-mat2.vert: 0(18) : error C1307: non constant expression for array size
  • 0(19) : error C1307: non constant expression for array size
  • 0(20) : error C1307: non constant expression for array size
  • 0(21) : error C1307: non constant expression for array size
  • 0(22) : error C1307: non constant expression for array size
  • 0(23) : error C1307: non constant expression for array size
info
Returncode: 1

Errors:
Failed to compile vertex shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/op-add-float-mat2.vert: 0(18) : error C1307: non constant expression for array size
0(19) : error C1307: non constant expression for array size
0(20) : error C1307: non constant expression for array size
0(21) : error C1307: non constant expression for array size
0(22) : error C1307: non constant expression for array size
0(23) : 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:
 * (0.0 + mat2(1.6, 1.53, 0.75999999, -1.0)) => mat2(1.6, 1.53, 0.75999999, -1.0)
 * (0.0 + mat2(-0.13, -1.4, -0.87, 1.4)) => mat2(-0.13, -1.4, -0.87, 1.4)
 * (-1.33 + mat2(1.6, 1.53, 0.75999999, -1.0)) => mat2(0.26999998, 0.19999993, -0.57000005, -2.3299999)
 * (-1.33 + mat2(-0.13, -1.4, -0.87, 1.4)) => mat2(-1.46, -2.73, -2.2, 0.069999933)
 * (0.85000002 + mat2(1.6, 1.53, 0.75999999, -1.0)) => mat2(2.45, 2.3800001, 1.61, -0.14999998)
 * (0.85000002 + mat2(-0.13, -1.4, -0.87, 1.4)) => mat2(0.72000003, -0.54999995, -0.019999981, 2.25)
 */
#version 120

void main()
{
  float[pow(distance((0.0 + mat2(1.6, 1.53, 0.75999999, -1.0))[0], vec2(1.6, 1.53)), 2) + pow(distance((0.0 + mat2(1.6, 1.53, 0.75999999, -1.0))[1], vec2(0.75999999, -1.0)), 2) <= 6.4784994e-10 ? 1 : -1] array0;
  float[pow(distance((0.0 + mat2(-0.13, -1.4, -0.87, 1.4))[0], vec2(-0.13, -1.4)), 2) + pow(distance((0.0 + mat2(-0.13, -1.4, -0.87, 1.4))[1], vec2(-0.87, 1.4)), 2) <= 4.6938003e-10 ? 1 : -1] array1;
  float[pow(distance((-1.33 + mat2(1.6, 1.53, 0.75999999, -1.0))[0], vec2(0.26999998, 0.19999993)), 2) + pow(distance((-1.33 + mat2(1.6, 1.53, 0.75999999, -1.0))[1], vec2(-0.57000005, -2.3299999)), 2) <= 5.8666993e-10 ? 1 : -1] array2;
  float[pow(distance((-1.33 + mat2(-0.13, -1.4, -0.87, 1.4))[0], vec2(-1.46, -2.73)), 2) + pow(distance((-1.33 + mat2(-0.13, -1.4, -0.87, 1.4))[1], vec2(-2.2, 0.069999933)), 2) <= 1.44294e-09 ? 1 : -1] array3;
  float[pow(distance((0.85000002 + mat2(1.6, 1.53, 0.75999999, -1.0))[0], vec2(2.45, 2.3800001)), 2) + pow(distance((0.85000002 + mat2(1.6, 1.53, 0.75999999, -1.0))[1], vec2(1.61, -0.14999998)), 2) <= 1.42815e-09 ? 1 : -1] array4;
  float[pow(distance((0.85000002 + mat2(-0.13, -1.4, -0.87, 1.4))[0], vec2(0.72000003, -0.54999995)), 2) + pow(distance((0.85000002 + mat2(-0.13, -1.4, -0.87, 1.4))[1], vec2(-0.019999981, 2.25)), 2) <= 5.8838001e-10 ? 1 : -1] array5;
  gl_Position = vec4(array0.length() + array1.length() + array2.length() + array3.length() + array4.length() + array5.length());
}

Back to summary