Results for spec/glsl-1.30/compiler/storage-qualifiers/static-write-clip-distance.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.911144971848
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.30/compiler/storage-qualifiers/static-write-clip-distance.frag fail 1.30
errors
  • Successfully compiled fragment shader tests/spec/glsl-1.30/compiler/storage-qualifiers/static-write-clip-distance.frag: Fragment shader was successfully compiled to run on hardware.
  • WARNING: 0:19: warning(#398) l-value required assign "gl_ClipDistance" (can't modify a varying)
info
Returncode: 1

Errors:
Successfully compiled fragment shader tests/spec/glsl-1.30/compiler/storage-qualifiers/static-write-clip-distance.frag: Fragment shader was successfully compiled to run on hardware.
 WARNING: 0:19: warning(#398) l-value required assign "gl_ClipDistance" (can't modify a varying)


Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.30
// [end config]
//
// From section 4.3.4 of the GLSL 1.30 spec:
//     Variables declared as in or centroid in may not be written
//     to during shader execution.
//
// From section 7.2 of the GLSL 1.30 spec:
//     The built-in special variables that are accessible from a
//     fragment shader are intrinsically declared as follows:
//         ...
//     in float gl_ClipDistance[];

#version 130

void g() {
    gl_ClipDistance[0] = 0.0;
}

Back to summary