<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [i965] Incorrect pixels when using discard and uniform loads"
href="https://bugs.freedesktop.org/show_bug.cgi?id=79948">79948</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>idr@freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>[i965] Incorrect pixels when using discard and uniform loads
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cody@lunarg.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/DRI/i965
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=100932" name="attach_100932" title="Patch to piglit test showing the discard problem.">attachment 100932</a> <a href="attachment.cgi?id=100932&action=edit" title="Patch to piglit test showing the discard problem.">[details]</a></span>
Patch to piglit test showing the discard problem.
Commit 17c7ead7 exposed a bug in how uniform loading happens in the presence of
discard. It manifested itself in an application as randomly incorrect pixels
on the borders of conditional areas.
We've boiled it down to a piglit test case, attached as a patch to existing
test. When you run it on HSW with mesa 10.2 or later, notice the white line
along the diagonal axis. That shouldn't be there. The white is coming from a
texture sample to make it easy to see the problem. It should have been
multiplied by the uniform values as the rest of the fragments were. The key
bits are in the second fragment shader.
I believe we've root caused it and I'll next attach a fix that I'll send to the
mesa-dev list.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>