<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gl_PrimitiveId seems to reset at 340"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90130">90130</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>gl_PrimitiveId seems to reset at 340
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.5
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kennethmorrismartin@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Using gl_PrimitiveId with mesa 10.5.3 on Linux (running in a Virtualbox VM on
windows) I am seeing glPrimitiveId increment up to 339 and then it resets back
to zero and starts incrementing again. Yeh, 0-339, that's funky.

This is the source of many of the failures on the following dashboard

<a href="https://open.cdash.org/viewTest.php?onlyfailed&buildid=3781713">https://open.cdash.org/viewTest.php?onlyfailed&buildid=3781713</a>

as the mapping of cells to colors is based on gl_PrimitiveId and it seems to be
restarting after 339. My code (a VTK branch) has a vertex shader and fragment
shader with no geometry shader. I am requesting and getting a 3.2 core context.
The same codebase on Windows using nvidia or intel drivers (non mesa) is
working. Any help appreciated. If there is additional information etc that
would be helpful just let me know and I can try to dig it up.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>