<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#c18">Comment # 18</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>(In reply to <a href="show_bug.cgi?id=78679#c17">comment #17</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=78679#c16">comment #16</a>)
> > (In reply to <a href="show_bug.cgi?id=78679#c13">comment #13</a>)
> > Could you try the following?
> > 
> > 1. Disable AA only: Remove glEnable(GL_LINE_SMOOTH)
> > 2. Disable blending only: remove glEnable(GL_BLEND)
> > 3. Disable AA and blending
> > 4. Do 1-3 again but removing also glPolygonMode(GL_FRONT, GL_LINE)

> 0. Patched (original): Upper edges interpolate, back face is blue.</span >

In ironlake only one of the upper edges interpolates, back face is properly
interpolated.

<span class="quote">> 1. Disable AA only: No interpolation for upper edges, they are blue as the
> back face.</span >

Same in ironlake, except for the back face that is interpolated.

<span class="quote">> 2. Disable blending only: Same as 0 (has no effect).

> 3. Disable AA and blending: Same as 1.</span >

Same as ironlake (in the sense that they don't seem to affect the results
obtained in 0 and 1 respectively)

<span class="quote">> 4. Disable line front: Interpolates correctly on both sides independent of
> other settings.</span >

Interesting, looks like the flat rendering of the back face in Gen4 is
unaffected by AA and is only related to the selected polygon modes.

<span class="quote">> Also

> 5. Enable line front and back: Same as 1 for both sides.

> 6. Disable line front, enable line back: Front face is blue, shorter upper
> edge is blue, longer upper edge still interpolates.</span >

Based on these results there are two issues:

1) In gen4-5: wrong color interpolation of the GL_LINE face of the polygons.
2) In gen4: wrong color interpolation of the GL_FILL face of the polygon when
the other face is GL_LINE.

These issues seem to exist with and without AA settings in general and seem to
be related mostly with the polygon modes.

With this info I think I'll send the patches to the mailing list for review
since they seem to fix some problems and we should probably leave this bug open
to track the remaining problems (or maybe open a new bug since I don't know if
these issues existed before 098acf6c84333edbb7b1228545e4bdb2572ee0cd too).

Thanks Sergej, that was useful.</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>