Commit 7c5cdf51 authored by Andres Gomez's avatar Andres Gomez

arb_enhanced_layouts: correct interpolation qualifiers

Corrected several component aliasing tests which shouldn't be failing
or were failing due to a different reason than the tested one:
interpolation qualifiers mismatch.

From Section 4.4.1 (Input Layout Qualifiers) of the GLSL 4.50 spec:

  " Further, when location aliasing, the aliases sharing the location
    must have the same underlying numerical type (floating-point or
    integer) and the same auxiliary storage and interpolation
    qualification."

Cc: Timothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: Andres Gomez's avatarAndres Gomez <agomez@igalia.com>
Reviewed-by: Juan Suárez Romero's avatarJuan A. Suarez <jasuarez@igalia.com>
parent 8f04a7ec
......@@ -23,10 +23,10 @@ GL_ARB_separate_shader_objects
#extension GL_ARB_separate_shader_objects: require
// consume X/Y/Z components
layout(location = 0) out ivec3 a;
layout(location = 0) flat out ivec3 a;
// consumes W component
layout(location = 0, component = 3) out uint b;
layout(location = 0, component = 3) flat out uint b;
void main()
{
......@@ -53,4 +53,4 @@ void main()
}
[test]
link error
link success
......@@ -28,7 +28,7 @@ GL_ARB_separate_shader_objects
layout(location = 7, component = 0) flat out double a;
// consumes Z component
layout(location = 7, component = 2) out float b;
layout(location = 7, component = 2) flat out float b;
void main()
{
......@@ -48,7 +48,7 @@ out vec4 color;
layout(location = 7, component = 0) flat in double a;
// consumes Z component
layout(location = 7, component = 2) in float b;
layout(location = 7, component = 2) flat in float b;
void main()
{
......
......@@ -23,10 +23,10 @@ GL_ARB_separate_shader_objects
#extension GL_ARB_separate_shader_objects: require
// consume X/Y/Z components
layout(location = 0) out uvec3 a;
layout(location = 0) flat out uvec3 a;
// consumes W component
layout(location = 0, component = 3) out float b;
layout(location = 0, component = 3) flat out float b;
void main()
{
......
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