Commit 2afd59ad authored by Andres Gomez's avatar Andres Gomez

arb_enhanced_layouts: add another xfb_stride overflow test

Additional check to address a bug in mesa in which a stride which
is a divisor of the declared offset for an overflowing varying
won't fail.

From the GL_ARB_enhanced_layouts spec:

  " It is a compile-time or link-time error to have any *xfb_offset*
    that overflows *xfb_stride*, whether stated on declarations before
    or after the *xfb_stride*, or in different compilation units."

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 93f48c04
// [config]
// expect_result: fail
// glsl_version: 1.40
// check_link: true
// require_extensions: GL_ARB_enhanced_layouts
// [end config]
//
// Additional check to address a bug in mesa in which a stride which
// is a divisor of the declared offset for an overflowing varying
// won't fail.
//
// From the GL_ARB_enhanced_layouts spec:
//
// "It is a compile-time or link-time error to have any *xfb_offset*
// that overflows *xfb_stride*, whether stated on declarations before or
// after the *xfb_stride*, or in different compilation units."
#version 140
#extension GL_ARB_enhanced_layouts: require
layout(xfb_stride = 16) out vec4 var;
layout(xfb_offset = 16) out vec4 var2;
void main()
{
var = vec4(1.0);
var2 = 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