<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 - Test 'arb_program_interface_query-getprogramresourceindex' fails on SNB and KBL on latest mesa from git."
href="https://bugs.freedesktop.org/show_bug.cgi?id=107639">107639</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Test 'arb_program_interface_query-getprogramresourceindex' fails on SNB and KBL on latest mesa from git.
</td>
</tr>
<tr>
<th>Product</th>
<td>piglit
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>tests
</td>
</tr>
<tr>
<th>Assignee</th>
<td>piglit@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andrey.simiklit@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>piglit@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Test 'arb_program_interface_query-getprogramresourceindex' fails on SNB and KBL
on latest mesa from git on the following subtest:
Invalid index for 'vs_input2[1][0]': expected INVALID_INDEX but got 1
PIGLIT: {"subtest": {"'vs_input2[1][0]' on GL_PROGRAM_INPUT" : "fail"}}
But according to spec:
<span class="quote">> /* Naming conventions, from the GL_ARB_program_interface_query extension:
> *
> * "When building a list of active variable or interface blocks, resources
> * with aggregate types (such as arrays or structures) may produce multiple
> * entries in the active resource list for the corresponding interface.
> * Additionally, each active variable, interface block, or subroutine in the
> * list is assigned an associated name string that can be used by
> * applications to refer to the resources. For interfaces involving
> * variables, interface blocks, or subroutines, the entries of active
> * resource lists are generated as follows:
> ..................
> * * For an active variable declared as an array of an aggregate data type
> * (structures or arrays), a separate entry will be generated for each
> * active array element, unless noted immediately below. The name of
> * each entry is formed by concatenating the name of the array, the "["
> * character, an integer identifying the element number, and the "]"
> * character. These enumeration rules are applied recursively, treating
> * each enumerated array element as a separate active variable.
> .......................</span >
I guess that the 'glGetProgramResourceIndex' function should return a valid
index for the 'vs_input2[1][0]' case. I think that the 'vs_input2[0][0]' and
'vs_input2[1][0]' cases are the separated valid entries here according to spec
above. So I think that this subtest should pass for this cases. Please let me
know if I am incorrect.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>