Results for spec@glsl-es-1.00@compiler@const-initializer@from-sequence-in-function.frag

Overview

Result: crash

Back to summary

Details

Detail Value
Returncode -11
Time 0:00:00.122405
Stdout
Shader source:
#version 100

/* [config]
 * expect_result: pass
 * glsl_version: 1.00
 * [end config]
 *
 * Section 5.10 (Constant Expressions) of the GLSL ES 1.00.17 spec says:
 *
 *     "A constant expression is one of
 *
 *         ...
 *
 *         - a built-in function call whose arguments are all constant
 *           expressions, with the exception of the texture lookup functions."
 *
 * While the sequence operator is specifically disallowed as a constant
 * expression in GLSL ES 3.0 and later, it is allowed in GLSL ES 1.00.
 */

precision mediump float;

const float f = cos((1.0, 2.0));

void main()
{
    gl_FragData[0] = vec4(f);
}

Stderr
Failed to compile fragment shader /usr/local/lib/piglit/tests/spec/glsl-es-1.00/compiler/const-initializer/from-sequence-in-function.frag: 0:23(22): warning: left-hand operand of comma expression has no effect
0:23(17): error: initializer of const variable `f' must be a constant expression

Environment
PIGLIT_SOURCE_DIR="/usr/local/lib/piglit" PIGLIT_PLATFORM="mixed_glx_egl"
Command /usr/local/lib/piglit/bin/glslparsertest_gles2 /usr/local/lib/piglit/tests/spec/glsl-es-1.00/compiler/const-initializer/from-sequence-in-function.frag pass 1.00
dmesg

        

Back to summary