<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Varying passed from gs->fs corrupted if not first similar draw."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79685">79685</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>Varying passed from gs->fs corrupted if not first similar draw.
          </td>
        </tr>

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

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>david@ingeniumdigital.com
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>10.1
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is a strange one.

I've got a bunch of simple objects being rendered (rectangles and ellipses),
using different gs+fs, but the same vs. One of the gs+fs pairs passes a vec2
varying from the gs->fs. If this object is the first (nonempty) drawcall in the
frame, it renders correctly as a circle (the varying being "texture
coordinates" as it were). If another gs+fs combination runs first, the varying
is not passed through correctly.

Example apitrace: <a href="http://davidgow.net/stuff/gs-fs-var.trace.bz2">http://davidgow.net/stuff/gs-fs-var.trace.bz2</a>
- At call #180, we should see an ellipse, but see a rectangle.
  <a href="http://davidgow.net/stuff/gs-fs-var-bad.png">http://davidgow.net/stuff/gs-fs-var-bad.png</a>
- If we change the glUseProgram in call #175 to use program 13, we see the
ellipse at call #180.
  <a href="http://davidgow.net/stuff/gs-fs-var-good.png">http://davidgow.net/stuff/gs-fs-var-good.png</a>

The source for program 13 is located here:
<a href="http://davidgow.net/stuff/gs-fs-var.glsldump">http://davidgow.net/stuff/gs-fs-var.glsldump</a>

This code correctly displays the ellipse on both the nvidia and fglrx drivers,
but fails on both Mesa 10.1 (Ubuntu 14.04) and Mesa git (2211696-) IVB.

Am I doing anything obviously wrong?

Thanks,
— David</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>