<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 - Invalid gl_InstanceID value with combination of gl_DrawIDARB under OpenGL"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106411">106411</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Invalid gl_InstanceID value with combination of gl_DrawIDARB under OpenGL
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>18.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>glsl-compiler
          </td>
        </tr>

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

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

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=139374" name="attach_139374" title="app">attachment 139374</a> <a href="attachment.cgi?id=139374&action=edit" title="app">[details]</a></span>
app

The value of gl_InstanceID variable is incorrect when shader has gl_DrawIDARB.
Inserting additional dependency on gl_VertexID or gl_BaseInstanceARB variable
restores gl_InstanceID value.

Uncomment 17 line inside main_vertex.glsl file to fix gl_InstanceID:
// position.x += gl_VertexID * 1e-6f;

There is no such problem under Vulkan API.

Mesa DRI Intel(R) Iris Pro Graphics 580 (Skylake GT4e) 
4.5 (Core Profile) Mesa 18.0.0-rc4</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>