Results for spec@glsl-1.10@compiler@fragment-outputs@write-gl_fragcolor-dead-and-gl_fragdata.frag

Overview

Result: fail

Back to summary

Details

Detail Value
Returncode 1
Time 0:00:00.159414
Stdout
Shader source:
/* [config]
 * expect_result: fail
 * glsl_version: 1.10
 * [end config]
 *
 * From page 49 of the GLSL 1.10 spec:
 *
 *     "If a shader statically assigns a value to gl_FragColor, it may not
 *     assign a value to any element of gl_FragData. If a shader statically
 *     writes a value to any element of gl_FragData, it may not assign a value
 *     to gl_FragColor. That is, a shader may assign values to either
 *     gl_FragColor or gl_FragData, but not both."
 *
 * Since these are compile time errors and are based on static assignments,
 * the check must happen before any dead-code removal or other optimizations.
 */
void main()
{
	if (false)
		gl_FragColor = vec4(1.0);
	gl_FragData[0] = vec4(1.0);
}

Stderr
Successfully compiled fragment shader /Users/vlee/workspace/piglit/tests/spec/glsl-1.10/compiler/fragment-outputs/write-gl_FragColor-dead-and-gl_FragData.frag: (no compiler output)
Environment
PIGLIT_SOURCE_DIR="/Users/vlee/workspace/piglit" PIGLIT_PLATFORM="mixed_glx_egl"
Command /Users/vlee/workspace/piglit/bin/glslparsertest /Users/vlee/workspace/piglit/tests/spec/glsl-1.10/compiler/fragment-outputs/write-gl_FragColor-dead-and-gl_FragData.frag fail 1.10
dmesg

        

Back to summary