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

Overview

Result: crash

Back to summary

Details

Detail Value
Returncode -11
Time 0:00:00.236681
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."
 */

precision mediump float;

const float f = cos(0.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-function.frag: 0:20(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-function.frag pass 1.00
dmesg

        

Back to summary