Results for spec/glsl-1.20/compiler/built-in-functions/sign-float.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.25065112114
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/sign-float.frag pass 1.20
errors
  • Failed to compile fragment shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/sign-float.frag: 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
  • 0(20) : error C1307: non constant expression for array size
  • 0(21) : 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/sign-float.frag: 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
0(20) : error C1307: non constant expression for array size
0(21) : 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:
 * sign(-1.5) => -1.0
 * sign(-0.75) => -1.0
 * sign(0.0) => 0.0
 * sign(0.75) => 1.0
 * sign(1.5) => 1.0
 */
#version 120

void main()
{
  float[distance(sign(-1.5), -1.0) <= 9.9999997e-06 ? 1 : -1] array0;
  float[distance(sign(-0.75), -1.0) <= 9.9999997e-06 ? 1 : -1] array1;
  float[distance(sign(0.0), 0.0) <= 0.0 ? 1 : -1] array2;
  float[distance(sign(0.75), 1.0) <= 9.9999997e-06 ? 1 : -1] array3;
  float[distance(sign(1.5), 1.0) <= 9.9999997e-06 ? 1 : -1] array4;
  gl_FragColor = vec4(array0.length() + array1.length() + array2.length() + array3.length() + array4.length());
}

Back to summary