<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Gen4-5 code lost: runtime_check_aads_emit"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78679#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Gen4-5 code lost: runtime_check_aads_emit"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78679">bug 78679</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>Created <span class=""><a href="attachment.cgi?id=99623" name="attach_99623" title="Patch for testing">attachment 99623</a> <a href="attachment.cgi?id=99623&action=edit" title="Patch for testing">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=78679&attachment=99623'>[review]</a>
Patch for testing

This patch provides two different solutions for the problem that can be
selected via an environment variable. One uses the JMPI instruction as in the
original code but at least in my IronLake hardware it does not produce correct
rendering of the GL_FILL face of the polygon. The other one uses IF/ELSE/ENDIF
instructions and does produce correct results in IronLake. I don't know why
only the latter works, maybe someone can look at the code and point out the
problem.

To test, run the sample program (line_aa) attached to this bug report like
this:

# Test solution with IF/END/ELSE
./line_aa

# Test solution with JMPI
INTEL_TRY_AA_JMPI=1 ./line_aa

The correct result should show the front face of the triangle rendered in
GL_LINE mode with antialiased lines and the back face rendered in GL_FILL mode
with smooth interpolation of the red, green and blue vertices.

I am particularly interested in having this tested in Gen < 5 since I don't
have that hardware.</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>