<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 - dEQP GLES3.1 program_interface_query failures w/ error "could not find target resource""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98223">98223</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>dEQP GLES3.1 program_interface_query failures w/ error "could not find target resource"
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>major
          </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>randy.xu@intel.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In dEQP GLES3.1 test suite, there are about 500 failures in
dEQP-GLES31.functional.program_interface_query.program_input* and
dEQP-GLES31.functional.program_interface_query.program_output*. 

The signature is similar:
<Result StatusCode="Fail">could not find target resource</Result>


Take the case
"dEQP-GLES31.functional.program_interface_query.program_input.is_per_patch.interface_blocks.in.block_array.var_array"
for example

The dEQP test case query the shader variable "target" through
"TargetInterface.target[0]", while the name in GLSL type is
"TargetInterface[2].target"

The shader code is:

#version 310 es
#extension GL_EXT_shader_io_blocks : require

in TargetInterface
{
    highp vec4 target[3];
} targetInstance[2];

highp vec4 readInputs()
{
    highp vec4 retValue = vec4(0.0);
    retValue += vec4(targetInstance[0].target[0].xyxy);
    retValue += vec4(targetInstance[0].target[1].xyxy);
    retValue += vec4(targetInstance[0].target[2].xyxy);
    retValue += vec4(targetInstance[1].target[0].xyxy);
    retValue += vec4(targetInstance[1].target[1].xyxy);
    retValue += vec4(targetInstance[1].target[2].xyxy);
    return retValue;
}

void writeOutputs(in highp vec4 dummyValue)
{
    gl_FragDepth = dot(dummyValue.xy, dummyValue.xw);
}

void main()
{
    writeOutputs(readInputs());
}</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>