<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [IVB/HSW] ogl-samples: gl-320-primitive-shading render error (missing all colors)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76394#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [IVB/HSW] ogl-samples: gl-320-primitive-shading render error (missing all colors)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76394">bug 76394</a>
              from <span class="vcard"><a class="email" href="mailto:itoral@igalia.com" title="Iago Toral <itoral@igalia.com>"> <span class="fn">Iago Toral</span></a>
</span></b>
        <pre>The problem seems to be that there is a conflict with the names of in/out
variables in the geometry shader that the compiler is not handling properly,
even when they are in different interface blocks.

Inputs and outputs in the geometry shader are defined like this:

in block
{
    vec4 Color;
} In[];

out block
{
       vec4 Color;
} Out;

Simply giving the output a different name (and editing the vertex/frag shaders
accordingly) fixes the problem. For example:

out block
{
    vec4 ColorF;
} Out;

Note: It will still write the error messages mentioned in the bug report after
this change. These errors are produced with every access to gl_in in the
geometry shader.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>