Overview

Hardware ivb
Architecture m64
Status fail
Filtered Status fail
Time 0.021676

See also historical results for this test.

stdout

/tmp/build_root/m64/lib/piglit/bin/glslparsertest /tmp/build_root/m64/lib/piglit/tests/spec/arb_enhanced_layouts/compiler/explicit-offsets/ubo-explicit-offset-vec3.vert pass 1.40 GL_ARB_enhanced_layouts
piglit: debug: Requested an OpenGL 3.1 Forward-Compatible Core Context, and received a matching 4.2 context

Shader source:
// [config]
// expect_result: pass
// glsl_version: 1.40
// require_extensions: GL_ARB_enhanced_layouts
// check_link: false
// [end config]
//
// ARB_enhanced_layouts spec says:
//    "It is a compile-time error to
//    specify an *offset* that is smaller than the offset of the previous
//    member in the block or that lies within the previous member of the
//    block."
//
// Tests whether choosing an offset that is larger than the previous element's
// size, but smaller than its base alignment, is accepted.
//

#version 140
#extension GL_ARB_enhanced_layouts : enable

layout(std140) uniform block {
       layout(offset = 0) vec3 var1;
       layout(offset = 12) float var2;
};

void main()
{
}

stderr

Failed to compile vertex shader /tmp/build_root/m64/lib/piglit/tests/spec/arb_enhanced_layouts/compiler/explicit-offsets/ubo-explicit-offset-vec3.vert: 0:23(28): error: layout qualifier offset overlaps previous member



pid: [5424]
start time: 1548655856.7265022
end time: 1548655856.748178