<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 - triangle clipping causes wrong vertex's attribute to be broadcasted for flat interpolation"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98846">98846</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>triangle clipping causes wrong vertex's attribute to be broadcasted for flat interpolation
</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>Drivers/Gallium/swr
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>imirkin@alum.mit.edu
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>See example at
generated_tests/spec/glsl-1.10/execution/interpolation/interpolation-none-gl_FrontColor-flat-fixed.shader_test
This sets a position s.t. the clipping at +/-1 takes effect. And it works just
fine - the clipped result is correct. However the color output is green instead
of blue - the first vertex's color is broadcast to the new triangles rather
than the last vertex's color.
I traced through the code a bit, and it seems to *want* to do the right thing,
but for some reason doesn't. Smooth shading works fine in this clipping
scenario.
With user-provided clip planes (or distances), i.e. in where the clipping stage
does nothing, the color is picked correctly.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>