Results for spec/glsl-1.20/compiler/built-in-functions/equal-bvec2-bvec2.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.974836111069
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/equal-bvec2-bvec2.frag pass 1.20
errors
  • Failed to compile fragment shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/equal-bvec2-bvec2.frag: Fragment shader failed to compile with the following errors:
  • ERROR: 0:14: error(#185) Array size must be a constant integer expression
  • ERROR: 0:15: error(#185) Array size must be a constant integer expression
  • ERROR: error(#273) 2 compilation errors.  No code generated
info
Returncode: 1

Errors:
Failed to compile fragment shader tests/../generated_tests/spec/glsl-1.20/compiler/built-in-functions/equal-bvec2-bvec2.frag: Fragment shader failed to compile with the following errors:
ERROR: 0:14: error(#185) Array size must be a constant integer expression
ERROR: 0:15: error(#185) Array size must be a constant integer expression
ERROR: error(#273) 2 compilation errors.  No code generated



Output:
Shader source:
/* [config]
 * expect_result: pass
 * glsl_version: 1.20
 * [end config]
 *
 * Check that the following test vectors are constant folded correctly:
 * equal(bvec2(false, false), bvec2(false, true)) => bvec2(true, false)
 * equal(bvec2(true, true), bvec2(false, true)) => bvec2(false, true)
 */
#version 120

void main()
{
  float[equal(bvec2(false, false), bvec2(false, true))[0] == true && equal(bvec2(false, false), bvec2(false, true))[1] == false ? 1 : -1] array0;
  float[equal(bvec2(true, true), bvec2(false, true))[0] == false && equal(bvec2(true, true), bvec2(false, true))[1] == true ? 1 : -1] array1;
  gl_FragColor = vec4(array0.length() + array1.length());
}

Back to summary