Results for spec/glsl-1.00/compiler/storage-qualfiers/static-write-varying-02.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.668084144592
note
Returncode was 1
command
/home/airlied/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.00/compiler/storage-qualfiers/static-write-varying-02.frag fail 1.00
errors
  • Successfully compiled fragment shader tests/spec/glsl-1.00/compiler/storage-qualfiers/static-write-varying-02.frag: Fragment shader was successfully compiled to run on hardware.
  • WARNING: 0:18: warning(#398) l-value required assign "x" (can't modify a varying)
info
Returncode: 1

Errors:
Successfully compiled fragment shader tests/spec/glsl-1.00/compiler/storage-qualfiers/static-write-varying-02.frag: Fragment shader was successfully compiled to run on hardware.
 WARNING: 0:18: warning(#398) l-value required assign "x" (can't modify a varying)


Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.00
// [end config]
//
// From section 4.3.5 of the GLSL 1.00 spec:
//     A fragment shader can not write to a varying variable.

#version 100

varying float x;

void f(out float y) {
    y = 0.0;
}

void g() {
    f(x);
}

Back to summary