Commit 9966894d authored by Andres Gomez's avatar Andres Gomez

arb_enhanced_layouts: add xfb_offset overlap test

From the GL_ARB_enhanced_layouts spec:

  " No aliasing in output buffers is allowed: It is a compile-time or
    link-time error to specify variables with overlapping transform
    feedback offsets."

v2: added forgotten check_link.

Cc: Timothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: Andres Gomez's avatarAndres Gomez <agomez@igalia.com>
Reviewed-by: Timothy Arceri's avatarTimothy Arceri <tarceri@itsqueeze.com>
parent 2afd59ad
// [config]
// expect_result: fail
// glsl_version: 1.40
// check_link: true
// require_extensions: GL_ARB_enhanced_layouts
// [end config]
//
// From the GL_ARB_enhanced_layouts spec:
//
// " No aliasing in output buffers is allowed: It is a compile-time
// or link-time error to specify variables with overlapping
// transform feedback offsets."
#version 140
#extension GL_ARB_enhanced_layouts: require
layout(xfb_offset = 0) out vec4 a;
layout(xfb_offset = 0) out vec4 b;
void main()
{
a = vec4(1.0);
b = vec4(0.0);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment