<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 - Centroid shouldn't have to match between the FS and the VS"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92743">92743</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Centroid shouldn't have to match between the FS and the VS
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>10.5
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux (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>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>corentin@wallez.net
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>While running the GLES3 dEQP tests on ANGLE there was a failure that seemed
related to a misinterpretation of an underspecified part of the GLSL spec.

This was running on an Ubuntu variant with the followin:
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.5.9
OpenGL core profile shading language version string: 3.30

The problem is that glLinkProgram enforces varyings to have the same centroid
qualifier in the VS and FS. The GLSL 330 spec isn't clear on the this but the
GLSL ES 3.1 spec explicitly says centroid doesn't have to match. Also starting
from the GLSL 420 the list of interpolation qualifier is explicitly given and
centroid is not one of them. To finish there was a Khronos bug about that issue
which resolution was that centroid didn't have to match.

The relevant dEQP test is
dEQP-GLES3.functional.shaders.linkage.varying.rules.differing_interpolation_2,
you can find it by searching for "differing_interpolation" in
<a href="https://android.googlesource.com/platform/external/deqp/+/master/data/gles3/shaders/linkage.test">https://android.googlesource.com/platform/external/deqp/+/master/data/gles3/shaders/linkage.test</a></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>