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

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.29602599144
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.00/compiler/precision-qualifiers/precision-fs-highp-01.frag pass 1.00
errors
  • Failed to compile fragment shader tests/spec/glsl-1.00/compiler/precision-qualifiers/precision-fs-highp-01.frag: 0(22) : error C7573: OpenGL/ES requires precision specifier on float types
info
Returncode: 1

Errors:
Failed to compile fragment shader tests/spec/glsl-1.00/compiler/precision-qualifiers/precision-fs-highp-01.frag: 0(22) : error C7573: OpenGL/ES requires precision specifier on float types



Output:
Shader source:
// [config]
// expect_result: pass
// glsl_version: 1.00
// [end config]
//
// If high precision is available in the fragment shader, then it should be
// legal 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

#ifdef GL_FRAGMENT_PRECISION_HIGH
highp float x;
#endif

float f() {
	return 0.0;
}

Back to summary