Results for spec/glsl-1.20/compiler/built-in-functions/matrixCompMult-mat4x2-mat4x2.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.300884962082
note
Returncode was 1
command
/Users/mks/Downloads/piglit/framework/../bin/glslparsertest tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/matrixCompMult-mat4x2-mat4x2.frag pass 1.20
errors
  • Failed to compile fragment shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/matrixCompMult-mat4x2-mat4x2.frag: ERROR: 0:16: Array size must be an integer constant expression
  • ERROR: 0:17: Array size must be an integer constant expression
  • ERROR: 0:18: Array size must be an integer constant expression
  • ERROR: 0:19: Array size must be an integer constant expression
  • ERROR: 0:20: Use of undeclared identifier 'array0'
  • ERROR: 0:20: Use of undeclared identifier 'array1'
  • ERROR: 0:20: Use of undeclared identifier 'array2'
  • ERROR: 0:20: Use of undeclared identifier 'array3'
info
Returncode: 1

Errors:
Failed to compile fragment shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/matrixCompMult-mat4x2-mat4x2.frag: ERROR: 0:16: Array size must be an integer constant expression
ERROR: 0:17: Array size must be an integer constant expression
ERROR: 0:18: Array size must be an integer constant expression
ERROR: 0:19: Array size must be an integer constant expression
ERROR: 0:20: Use of undeclared identifier 'array0'
ERROR: 0:20: Use of undeclared identifier 'array1'
ERROR: 0:20: Use of undeclared identifier 'array2'
ERROR: 0:20: Use of undeclared identifier 'array3'



Output:
Shader source:
/* [config]
 * expect_result: pass
 * glsl_version: 1.20
 * [end config]
 *
 * Check that the following test vectors are constant folded correctly:
 * matrixCompMult(mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51), mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51)) => mat4x2(3.2760997, 1.3455999, 0.75690001, 2.3104, 0.65609998, 0.0625, 0.42249995, 2.2800999)
 * matrixCompMult(mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51), mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94)) => mat4x2(3.4932997, -0.56839997, 1.4181, -0.4104, 0.2349, 0.035, 1.04, -1.4194)
 * matrixCompMult(mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94), mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51)) => mat4x2(3.4932997, -0.56839997, 1.4181, -0.4104, 0.2349, 0.035, 1.04, -1.4194)
 * matrixCompMult(mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94), mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94)) => mat4x2(3.7248998, 0.24010001, 2.6568999, 0.072900005, 0.084099993, 0.0196, 2.5600002, 0.8836)
 */
#version 120

void main()
{
  float[pow(distance(matrixCompMult(mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51), mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51))[0], vec2(3.2760997, 1.3455999)), 2) + pow(distance(matrixCompMult(mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51), mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51))[1], vec2(0.75690001, 2.3104)), 2) + pow(distance(matrixCompMult(mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51), mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51))[2], vec2(0.65609998, 0.0625)), 2) + pow(distance(matrixCompMult(mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51), mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51))[3], vec2(0.42249995, 2.2800999)), 2) <= 2.4266051e-09 ? 1 : -1] array0;
  float[pow(distance(matrixCompMult(mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51), mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94))[0], vec2(3.4932997, -0.56839997)), 2) + pow(distance(matrixCompMult(mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51), mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94))[1], vec2(1.4181, -0.4104)), 2) + pow(distance(matrixCompMult(mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51), mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94))[2], vec2(0.2349, 0.035)), 2) + pow(distance(matrixCompMult(mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51), mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94))[3], vec2(1.04, -1.4194)), 2) <= 1.7858358e-09 ? 1 : -1] array1;
  float[pow(distance(matrixCompMult(mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94), mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51))[0], vec2(3.4932997, -0.56839997)), 2) + pow(distance(matrixCompMult(mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94), mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51))[1], vec2(1.4181, -0.4104)), 2) + pow(distance(matrixCompMult(mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94), mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51))[2], vec2(0.2349, 0.035)), 2) + pow(distance(matrixCompMult(mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94), mat4x2(1.8099999, -1.16, -0.87, -1.52, 0.81, 0.25, 0.64999998, -1.51))[3], vec2(1.04, -1.4194)), 2) <= 1.7858358e-09 ? 1 : -1] array2;
  float[pow(distance(matrixCompMult(mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94), mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94))[0], vec2(3.7248998, 0.24010001)), 2) + pow(distance(matrixCompMult(mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94), mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94))[1], vec2(2.6568999, 0.072900005)), 2) + pow(distance(matrixCompMult(mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94), mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94))[2], vec2(0.084099993, 0.0196)), 2) + pow(distance(matrixCompMult(mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94), mat4x2(1.9299999, 0.49000001, -1.63, 0.27000001, 0.28999999, 0.14, 1.6, 0.94))[3], vec2(2.5600002, 0.8836)), 2) <= 2.833876e-09 ? 1 : -1] array3;
  gl_FragColor = vec4(array0.length() + array1.length() + array2.length() + array3.length());
}

Back to summary