Results for spec/glsl-1.00/compiler/precision-qualifiers/precision-fs-highp-02.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.966042041779
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.00/compiler/precision-qualifiers/precision-fs-highp-02.frag fail 1.00
errors
  • Successfully compiled fragment shader tests/spec/glsl-1.00/compiler/precision-qualifiers/precision-fs-highp-02.frag: Fragment shader was successfully compiled to run on hardware.
  • WARNING: 0:19: warning(#263) 'precision qualifier' should be supported on glsl1.3
info
Returncode: 1

Errors:
Successfully compiled fragment shader tests/spec/glsl-1.00/compiler/precision-qualifiers/precision-fs-highp-02.frag: Fragment shader was successfully compiled to run on hardware.
 WARNING: 0:19: warning(#263) 'precision qualifier' should be supported on glsl1.3


Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.00
// [end config]
//
// If high precision is unavailable in the fragment shader, then it should be
// illegal to use it.
//
// From section 4.5.4 of the GLSL 1.00 spec:
//     "The built-in macro GL_FRAGMENT_PRECISION_HIGH is defined to one on
//     systems supporting highp precision in the fragment language
//         #define GL_FRAGMENT_PRECISION_HIGH 1
//     and is not defined on systems not supporting highp precision in the
//     fragment language."

#version 100

#ifndef GL_FRAGMENT_PRECISION_HIGH
highp float x;
#else
#error
#endif

float f() {
	return 0.0;
}

Back to summary