[Mesa-dev] [Bug 95005] Unreal engine demos segfault after shader compilation error with OpenGL 4.3

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 20 23:04:06 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=95005

--- Comment #7 from Ilia Mirkin <imirkin at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160420/f11626e8/attachment-0001.html>


More information about the mesa-dev mailing list