Results for spec/ARB_explicit_attrib_location/1.20/compiler/layout-10.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.224831104279
note Returncode was 1
command /usr/local/src/piglit/framework/../bin/glslparsertest tests/spec/arb_explicit_attrib_location/1.20/compiler/layout-10.vert pass 1.20 GL_ARB_explicit_attrib_location
errors
  • Failed to compile vertex shader tests/spec/arb_explicit_attrib_location/1.20/compiler/layout-10.vert: 0(17) : error C0000: syntax error, unexpected '(' at token "("
  • 0(17) : error C0501: type name expected at token "("
  • 0(17) : warning C7022: unrecognized profile specifier "layout"
  • 0(17) : error C0000: syntax error, unexpected ')', expecting ',' or ';' at token ")"
  • 0(17) : error C0501: type name expected at token ")"
  • 0(17) : error C7537: OpenGL does not allow 'inout' after a type specifier
  • 0(18) : error C0000: syntax error, unexpected '(' at token "("
  • 0(18) : error C0501: type name expected at token "("
  • 0(18) : warning C7022: unrecognized profile specifier "layout"
  • 0(18) : error C1038: declaration of "location" conflicts with previous declaration at 0(17)
  • 0(18) : error C0000: syntax error, unexpected ')', expecting ',' or ';' at token ")"
  • 0(18) : error C0501: type name expected at token ")"
  • 0(18) : error C7537: OpenGL does not allow 'inout' after a type specifier
  • 0(19) : error C0000: syntax error, unexpected '(' at token "("
  • 0(19) : error C0501: type name expected at token "("
  • 0(19) : warning C7022: unrecognized profile specifier "layout"
  • 0(19) : error C1038: declaration of "location" conflicts with previous declaration at 0(17)
  • 0(19) : error C0000: syntax error, unexpected ')', expecting ',' or ';' at token ")"
  • 0(19) : error C0501: type name expected at token ")"
  • 0(19) : error C7537: OpenGL does not allow 'inout' after a type specifier
  • 0(19) : error C1038: declaration of "vec4" conflicts with previous declaration at 0(17)
  • 0(21) : error C0000: syntax error, unexpected identifier, expecting '{' at token "varying_colors"
  • 0(21) : error C0501: type name expected at token "varying_colors"
  • 0(22) : error C0000: syntax error, unexpected identifier, expecting '{' at token "n"
  • 0(22) : error C0501: type name expected at token "n"
info
Returncode: 1

Errors:
Failed to compile vertex shader tests/spec/arb_explicit_attrib_location/1.20/compiler/layout-10.vert: 0(17) : error C0000: syntax error, unexpected '(' at token "("
0(17) : error C0501: type name expected at token "("
0(17) : warning C7022: unrecognized profile specifier "layout"
0(17) : error C0000: syntax error, unexpected ')', expecting ',' or ';' at token ")"
0(17) : error C0501: type name expected at token ")"
0(17) : error C7537: OpenGL does not allow 'inout' after a type specifier
0(18) : error C0000: syntax error, unexpected '(' at token "("
0(18) : error C0501: type name expected at token "("
0(18) : warning C7022: unrecognized profile specifier "layout"
0(18) : error C1038: declaration of "location" conflicts with previous declaration at 0(17)
0(18) : error C0000: syntax error, unexpected ')', expecting ',' or ';' at token ")"
0(18) : error C0501: type name expected at token ")"
0(18) : error C7537: OpenGL does not allow 'inout' after a type specifier
0(19) : error C0000: syntax error, unexpected '(' at token "("
0(19) : error C0501: type name expected at token "("
0(19) : warning C7022: unrecognized profile specifier "layout"
0(19) : error C1038: declaration of "location" conflicts with previous declaration at 0(17)
0(19) : error C0000: syntax error, unexpected ')', expecting ',' or ';' at token ")"
0(19) : error C0501: type name expected at token ")"
0(19) : error C7537: OpenGL does not allow 'inout' after a type specifier
0(19) : error C1038: declaration of "vec4" conflicts with previous declaration at 0(17)
0(21) : error C0000: syntax error, unexpected identifier, expecting '{' at token "varying_colors"
0(21) : error C0501: type name expected at token "varying_colors"
0(22) : error C0000: syntax error, unexpected identifier, expecting '{' at token "n"
0(22) : error C0501: type name expected at token "n"



Output:
Shader source:
// [config]
// expect_result: pass
// glsl_version: 1.20
// require_extensions: GL_ARB_explicit_attrib_location
// [end config]
//
// Even though the specified locations overlap, the spec says that a *link*
// error is generated.  The changes to section 2.11.3 say:
//
//     "LinkProgram will fail if the attribute bindings assigned by
//     BindAttribLocation do not leave not enough space to assign a location
//     for an active matrix attribute or an active attribute array, both of
//     which require multiple contiguous generic attributes."

#version 120
#extension GL_ARB_explicit_attrib_location: require
layout(location = 0) in vec4 vertex;
layout(location = 1) in mat4 mvp;
layout(location = 2) in vec4 normal;

out vec4 varying_colors[4];
out vec4 n;

void main()
{
	gl_Position = mvp * vertex;
	n = normal;
}

Back to summary