<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [OpenGL CTS] KHR-GL45.CommonBugs.CommonBug_PerVertexValidation fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102677#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [OpenGL CTS] KHR-GL45.CommonBugs.CommonBug_PerVertexValidation fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102677">bug 102677</a>
from <span class="vcard"><a class="email" href="mailto:kenneth@whitecape.org" title="Kenneth Graunke <kenneth@whitecape.org>"> <span class="fn">Kenneth Graunke</span></a>
</span></b>
<pre>In the failing case, a VS and GS are being linked together into a single
program. The vertex shader contains:
out gl_PerVertex
{
vec4 gl_Position;
};
while the geometry shader contains:
in gl_PerVertex
{
float gl_ClipDistance[];
} gl_in[];
which obviously don't match. Unfortunately, the geometry shader doesn't
actually use the gl_ClipDistance input at all, so it gets dead code eliminated
at compile time, before we even consider linking. At link time,
validate_interstage_inout_blocks() is supposed to enforce matching types, but
there are no longer any GS inputs with an interface type, so it can't check
anything.
Not sure what to do about this.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>