<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 - Register spilling with gl_VertexID"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84758">84758</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Register spilling with gl_VertexID
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </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>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>eero.t.tamminen@intel.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>petri.latvala@intel.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>77547
          </td>
        </tr></table>
      <p>
        <div>
        <pre>HS/SW setup:
- HSW GT3e
- Mesa git from 2014-09-30
- Ubuntu 14.04

Test-case:
- Build ogl-samples test-suite from:
  <a href="https://github.com/g-truc/ogl-samples.git">https://github.com/g-truc/ogl-samples.git</a>
- Run following test:
  build/Release/gl-400-fbo-rtt-texture-array

Actual result:
- "Vertex shader triggered register spilling.  Try reducing number of live vec4
value to improve performance."

Expected result:
- No register spilling with this simple vertex shader


Vertex shader is this:
<a href="https://github.com/g-truc/ogl-samples/blob/master/data/gl-400/rtt-array.vert">https://github.com/g-truc/ogl-samples/blob/master/data/gl-400/rtt-array.vert</a>

Code for the test is here:
<a href="https://github.com/g-truc/ogl-samples/blob/master/tests/gl-400-fbo-rtt-texture-array.cpp">https://github.com/g-truc/ogl-samples/blob/master/tests/gl-400-fbo-rtt-texture-array.cpp</a>


Same thing happens also with the other tests using gl_VertexID as array index
to small const array, for example with gl-320-draw-without-vertex-attrib test:
<a href="https://github.com/g-truc/ogl-samples/blob/master/data/gl-320/draw-without-vertex-attrib.vert">https://github.com/g-truc/ogl-samples/blob/master/data/gl-320/draw-without-vertex-attrib.vert</a>

(which doesn't require setting these like gl-400-fbo-rtt* tests do:
  MESA_GL_VERSION_OVERRIDE=4.00
  MESA_GLSL_VERSION_OVERRIDE=400
)</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>