<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 strip clipping with GL_FIRST_VERTEX_CONVENTION causes wrong vertex's attribute to be broadcasted for flat interpolation"
href="https://bugs.freedesktop.org/show_bug.cgi?id=110451">110451</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>triangle strip clipping with GL_FIRST_VERTEX_CONVENTION 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>All
</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/llvmpipe
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>z.figura12@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>This is superficially similar to <a class="bz_bug_link
bz_status_NEW "
title="NEW - triangle clipping causes wrong vertex's attribute to be broadcasted for flat interpolation"
href="show_bug.cgi?id=98846">bug 98846</a>, but not identical.
It affects softpipe and llvmpipe at least. When drawing clipped triangle strips
(and, I believe, only triangle strips), and using GL_FIRST_VERTEX_CONVENTION,
the wrong vertex of every other clipped triangle is broadcasted for flat
interpolation. This seems to be because do_clip_tri() in
src/gallium/auxiliary/draw/draw_pipe_clip.c gets passed the vertices in winding
order, but assumes the first vertex will be the provoking vertex (when in
reality it may be the second).
This causes failures in Wine's conformance test suite, since we use
GL_FIRST_VERTEX_CONVENTION universally, and test flat shading with
GL_TRIANGLESTRIP and some vertices slightly clipped outside of the viewport.
Since our test suite is run in a virtual machine, it uses llvmpipe, and so is
affected by this bug.
I'm not familiar with Mesa, but I'd like to at least take a shot at fixing
this. I guess the first step is to add a new test to piglit.</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>