<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Ring hang with geometry shaders on SNB"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84104#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Ring hang with geometry shaders on SNB"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84104">bug 84104</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>For reference, this is all that I could find above this hang so far:
<a href="http://lists.freedesktop.org/archives/mesa-dev/2014-August/065726.html">http://lists.freedesktop.org/archives/mesa-dev/2014-August/065726.html</a>

In summary:
  - glDrawElements is used
  - There are repeating indices (at least 8 consecutive repeating indices, or 8
repeating vertices in any subset of 9 consecutive indices)
  - primitive type is GL_TRIANGLE_STRIP_ADJACENCY
  - The hang persists even in the case that the GS is empty and we clip all the
vertices (so it really looks like this is unrelated to the code we generate)

I can reproduce the problem with a standalone program that can switch between
glDrawArrays and glDrawElements (for glDrawArrays I just pass the same vertex
data for all vertices). Both executions generate the exact same code for the VS
and GS, but only the version with glDrawElements version hangs...

So based on this, it would really look like the problem is not in the geometry
shader implementation, but something else.

Kenneth, here are two AUB traces I obtained using this program. One for
glDrawElements and one for  glDrawArrays. Could you run both through the
simulator and see if you spot any differences? Maybe that can give us a
clue....

<a href="http://people.igalia.com/itoral/intel.hangs_with_elements.aub">http://people.igalia.com/itoral/intel.hangs_with_elements.aub</a>
<a href="http://people.igalia.com/itoral/intel.works_with_arrays.aub">http://people.igalia.com/itoral/intel.works_with_arrays.aub</a></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>