Reviewed-by: Timothy Arceri <tarc...@itsqueeze.com>
On 7/2/19 2:52 am, Andres Gomez wrote:
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 <tarc...@itsqueeze.com> Signed-off-by: Andres Gomez <ago...@igalia.com> --- .../xfb_offset/invalid-overlap.vert | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/spec/arb_enhanced_layouts/compiler/transform-feedback-layout-qualifiers/xfb_offset/invalid-overlap.vert diff --git a/tests/spec/arb_enhanced_layouts/compiler/transform-feedback-layout-qualifiers/xfb_offset/invalid-overlap.vert b/tests/spec/arb_enhanced_layouts/compiler/transform-feedback-layout-qualifiers/xfb_offset/invalid-overlap.vert new file mode 100644 index 000000000..5e8adc154 --- /dev/null +++ b/tests/spec/arb_enhanced_layouts/compiler/transform-feedback-layout-qualifiers/xfb_offset/invalid-overlap.vert @@ -0,0 +1,24 @@ +// [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); +}
_______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit