<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Unreal engine demos segfault after shader compilation error with OpenGL 4.3"
href="https://bugs.freedesktop.org/show_bug.cgi?id=95005#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Unreal engine demos segfault after shader compilation error with OpenGL 4.3"
href="https://bugs.freedesktop.org/show_bug.cgi?id=95005">bug 95005</a>
from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
<pre>(In reply to Christoph Haag from <a href="show_bug.cgi?id=95005#c6">comment #6</a>)
<span class="quote">> 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]'</span >
----------------
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>