Overview

Hardware skl
Architecture m64
Status fail
Filtered Status fail
Time 0.023662

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/ssbo-explicit-offset-vec3.vert pass 1.40 GL_ARB_enhanced_layouts GL_ARB_shader_storage_buffer_object
piglit: debug: Requested an OpenGL 3.1 Forward-Compatible Core Context, and received a matching 4.5 context

Shader source:
// [config]
// expect_result: pass
// glsl_version: 1.40
// require_extensions: GL_ARB_enhanced_layouts GL_ARB_shader_storage_buffer_object
// 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
#extension GL_ARB_shader_storage_buffer_object : enable

layout(std430) buffer b {
       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/ssbo-explicit-offset-vec3.vert: 0:24(28): error: layout qualifier offset overlaps previous member



pid: [5372]
start time: 1548655738.8372216
end time: 1548655738.8608832