<div dir="ltr">On 6 April 2013 20:25, Paul Berry <span dir="ltr"><<a href="mailto:stereotype441@gmail.com" target="_blank">stereotype441@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">When transform feedback is active, the driver manually counts the<br>
number of primitives that run through the pipeline, so that if a batch<br>
buffer flush happens, the next batch buffer can pick up transform<br>
feedback where the last batch buffer left off.  Hardware-accelerated<br>
primitive restart interferes with this process (because it makes the<br>
primitive count depend not just on the number of vertices entering the<br>
pipeline, but also on the contents of the index buffer).  So, when<br>
transform feedback is active, we need to fall back to the software<br>
implementation of primitive restart.<br>
<br>
Fixes piglit test "spec/!OpenGL 3.1/primitive-restart-xfb flush".<br>
<br>
NOTE: This is a candidate for stable release branches.<br></blockquote><div><br></div><div>NAK this patch.  Eric Anholt came up with a much better solution that doesn't require a software fallback (commits 007a88e and 62a18da).<br>
</div></div></div></div>