<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 - ir validation assert on valid GLSL"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102021">102021</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ir validation assert on valid GLSL
</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>glsl-compiler
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>airlied@freedesktop.org
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=133219" name="attach_133219" title="test to demonstrate error.">attachment 133219</a> <a href="attachment.cgi?id=133219&action=edit" title="test to demonstrate error.">[details]</a></span>
test to demonstrate error.
I've written a cut down test that shows a problem virgl hits.
It triggers an assert in the validation that the ir->type and
ir->operands[0]->type for an abs op are the same and they aren't.
temp0[1].x = float(inversesqrt( abs(temp0[0]).x));
temp0[1].y = float(inversesqrt( abs(temp0[0]).y));
is the construct that the compiler squashes incorrectly.
Not sure what pass is responsible for this yet.</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>