<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 - [GLSL] layout-location-struct.shader_test fails to link"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=108250">108250</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GLSL] layout-location-struct.shader_test fails to link
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>18.2
          </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>glsl-compiler
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vadym.shovkoplias@globallogic.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre># bin/shader_runner
./tests/spec/arb_separate_shader_objects/execution/layout-location-struct.shader_test 
Failed to link:
error: vertex shader output `s2' declared as type `S2', but fragment shader
input declared as type `S'
error: vertex shader output `s' declared as type `S', but fragment shader input
declared as type `S1'

Test failure on line 50
Probe color at (0,0)
  Expected: 255 0 0
  Observed: 0 0 0
Test failure on line 51
Failed to link:
error: vertex shader output `s2' declared as type `S2', but fragment shader
input declared as type `S'
error: vertex shader output `s' declared as type `S', but fragment shader input
declared as type `S1'



Accordingly to OpenGL 4.30 spec this test shouldn't fail to link:

Section 7.4.1 (Shader Interface Matching):

"Variables or block members declared as structures are considered
to match in type if and only if structure members match in name,
type, qualification, and declaration order."</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>