https://bugs.freedesktop.org/show_bug.cgi?id=95005
--- Comment #7 from Ilia Mirkin <imir...@alum.mit.edu> ---
(In reply to Christoph Haag from comment #6)
> 32283 @2 glLinkProgram(program = 3071)
> 32283: warning: link failed
> 32283: warning: error: vertex shader output `out_TEXCOORD0' declared as type
> `#anon_struct_0001', but geometry shader input declared as type
> `#anon_struct_0003[3]'
> error: vertex shader output `out_TEXCOORD1' declared as type
> `#anon_struct_0002', but geometry shader input declared as type
> `#anon_struct_0004[3]'
----------------
GS:
#version 430
#extension GL_ARB_separate_shader_objects : enable
#define INTERFACE_LOCATION(Pos) layout(location=Pos)
#define INTERFACE_BLOCK(Pos, Interp, Modifiers, Semantic, PreType, PostType)
layout(location=Pos) Interp Modifiers struct { PreType PostType; }
in gl_PerVertex
{
vec4 gl_Position;
float gl_ClipDistance[6];
} gl_in[];
out gl_PerVertex
{
vec4 gl_Position;
float gl_ClipDistance[6];
};
layout(triangles) in;
layout(triangle_strip, max_vertices = 3) out;
INTERFACE_BLOCK(0, noperspective , in , TEXCOORD0, vec2, Data) in_TEXCOORD0[3];
INTERFACE_BLOCK(1, , in , TEXCOORD1, uint, Data) in_TEXCOORD1[3];
INTERFACE_BLOCK(0, noperspective , out , TEXCOORD0, vec2, Data) out_TEXCOORD0;
INTERFACE_BLOCK(1, flat , out , HLSLCC_LAYER_INDEX, uint, Data)
out_HLSLCC_LAYER_INDEX;
---------------
VS:
#version 430
#extension GL_ARB_separate_shader_objects : enable
#define INTERFACE_LOCATION(Pos) layout(location=Pos)
#define INTERFACE_BLOCK(Pos, Interp, Modifiers, Semantic, PreType, PostType)
layout(location=Pos) Interp Modifiers struct { PreType PostType; }
out gl_PerVertex
{
vec4 gl_Position;
float gl_ClipDistance[6];
};
uniform ivec4 vu_i[1];
uniform vec4 vu_h[1];
INTERFACE_LOCATION(0) in vec2 in_ATTRIBUTE0;
INTERFACE_LOCATION(1) in vec2 in_ATTRIBUTE1;
INTERFACE_BLOCK(0, noperspective , out , TEXCOORD0, vec2, Data) out_TEXCOORD0;
INTERFACE_BLOCK(1, , out , TEXCOORD1, uint, Data) out_TEXCOORD1;
---------------
So it looks like they dropped the "semantic" which was giving the named types
and now just have anon types. Which I guess don't match up between programs for
some reason? Probably due to some array bs... that seems like an unrelated
issue though.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev