<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 - nir: problem case for loop unrolling"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107090">107090</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>nir: problem case for loop unrolling
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</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>Mesa core
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>caio.oliveira@intel.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=140437" name="attach_140437" title="Failing test case">attachment 140437</a> <a href="attachment.cgi?id=140437&action=edit" title="Failing test case">[details]</a></span>
Failing test case
The following
int i = 0;
do {
if (i == 1) {
colour.g = 1.0;
break;
}
i++;
} while (i < 2);
doesn't get unrolled properly and the green value is never written. If "i++" is
moved before the "if (...)" block, then things work.
This is a reduction for a problem reported last week by Karol Herbst. It is
also the root cause for Piglit test
tests/spec/glsl-1.10/execution/vs-loop-simple-unroll-induction-variable-inside-if-branch.shader_test
to fail.
Attached is a failing test case. From looking last week it seems there's
something missing in the logic for counting the number of iterations (hence
picking the right terminator for a loop).</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>