Results for spec/glsl-1.20/compiler/built-in-functions/op-neg-mat4.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.249887943268
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/op-neg-mat4.vert pass 1.20
errors
  • Failed to compile vertex shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/op-neg-mat4.vert: 0(14) : error C1307: non constant expression for array size
  • 0(15) : 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-neg-mat4.vert: 0(14) : error C1307: non constant expression for array size
0(15) : 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:
 * (- mat4(-1.0, 1.77, 0.090000004, -0.91000003, -0.55000001, 0.62, -0.70999998, -1.8200001, -1.08, 0.47999999, -1.39, -1.4299999, 1.79, -1.35, -1.21, 0.72000003)) => mat4(1.0, -1.77, -0.090000004, 0.91000003, 0.55000001, -0.62, 0.70999998, 1.8200001, 1.08, -0.47999999, 1.39, 1.4299999, -1.79, 1.35, 1.21, -0.72000003)
 * (- mat4(0.059999999, 1.6, 1.25, -0.16, 1.3099999, -0.31999999, 0.44999999, 0.44999999, 1.52, 0.50999999, 1.9, -0.88, -1.96, -1.84, -0.72000003, 0.38999999)) => mat4(-0.059999999, -1.6, -1.25, 0.16, -1.3099999, 0.31999999, -0.44999999, -0.44999999, -1.52, -0.50999999, -1.9, 0.88, 1.96, 1.84, 0.72000003, -0.38999999)
 */
#version 120

void main()
{
  float[pow(distance((- mat4(-1.0, 1.77, 0.090000004, -0.91000003, -0.55000001, 0.62, -0.70999998, -1.8200001, -1.08, 0.47999999, -1.39, -1.4299999, 1.79, -1.35, -1.21, 0.72000003))[0], vec4(1.0, -1.77, -0.090000004, 0.91000003)), 2) + pow(distance((- mat4(-1.0, 1.77, 0.090000004, -0.91000003, -0.55000001, 0.62, -0.70999998, -1.8200001, -1.08, 0.47999999, -1.39, -1.4299999, 1.79, -1.35, -1.21, 0.72000003))[1], vec4(0.55000001, -0.62, 0.70999998, 1.8200001)), 2) + pow(distance((- mat4(-1.0, 1.77, 0.090000004, -0.91000003, -0.55000001, 0.62, -0.70999998, -1.8200001, -1.08, 0.47999999, -1.39, -1.4299999, 1.79, -1.35, -1.21, 0.72000003))[2], vec4(1.08, -0.47999999, 1.39, 1.4299999)), 2) + pow(distance((- mat4(-1.0, 1.77, 0.090000004, -0.91000003, -0.55000001, 0.62, -0.70999998, -1.8200001, -1.08, 0.47999999, -1.39, -1.4299999, 1.79, -1.35, -1.21, 0.72000003))[3], vec4(-1.79, 1.35, 1.21, -0.72000003)), 2) <= 2.1855404e-09 ? 1 : -1] array0;
  float[pow(distance((- mat4(0.059999999, 1.6, 1.25, -0.16, 1.3099999, -0.31999999, 0.44999999, 0.44999999, 1.52, 0.50999999, 1.9, -0.88, -1.96, -1.84, -0.72000003, 0.38999999))[0], vec4(-0.059999999, -1.6, -1.25, 0.16)), 2) + pow(distance((- mat4(0.059999999, 1.6, 1.25, -0.16, 1.3099999, -0.31999999, 0.44999999, 0.44999999, 1.52, 0.50999999, 1.9, -0.88, -1.96, -1.84, -0.72000003, 0.38999999))[1], vec4(-1.3099999, 0.31999999, -0.44999999, -0.44999999)), 2) + pow(distance((- mat4(0.059999999, 1.6, 1.25, -0.16, 1.3099999, -0.31999999, 0.44999999, 0.44999999, 1.52, 0.50999999, 1.9, -0.88, -1.96, -1.84, -0.72000003, 0.38999999))[2], vec4(-1.52, -0.50999999, -1.9, 0.88)), 2) + pow(distance((- mat4(0.059999999, 1.6, 1.25, -0.16, 1.3099999, -0.31999999, 0.44999999, 0.44999999, 1.52, 0.50999999, 1.9, -0.88, -1.96, -1.84, -0.72000003, 0.38999999))[3], vec4(1.96, 1.84, 0.72000003, -0.38999999)), 2) <= 2.12278e-09 ? 1 : -1] array1;
  gl_Position = vec4(array0.length() + array1.length());
}

Back to summary