<p dir="ltr"></p>
<p dir="ltr">On Aug 2, 2016 12:36 PM, "Matt Turner" <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>> wrote:<br>
><br>
> On Mon, Aug 1, 2016 at 8:59 PM, Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br>
> > Previously, for every input, we moved the dispatch mask to the flag<br>
> > register, then emitted two predicated PLN instructions, one with<br>
> > centroid barycentric coordinates (for normal pixels), and one with<br>
> > pixel barycentric coordinates (for unlit helper pixels).<br>
> ><br>
> > Instead, we can simply emit a set of predicated MOVs at the top of<br>
> > the program which copy the pixel barycentric coordinates over the<br>
> > centroid ones for unlit helper pixel channels. Then, we can just<br>
> > use normal PLNs.</p>
<p dir="ltr">I like this approach *much* better than what we did before.</p>
<p dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>></p>
<p dir="ltr">> > On Sandybridge:<br>
> ><br>
> > total instructions in shared programs: 7538470 -> 7534500 (-0.05%)<br>
> > instructions in affected programs: 101268 -> 97298 (-3.92%)<br>
> > helped: 705<br>
> > HURT: 9 (all of which are SIMD16 programs)<br>
><br>
> Reviewed-by: Matt Turner <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>><br>
><br>
> Maybe wait a few days before pushing so we can confirm that my patch<br>
> indeed doesn't cause any regressions on Gen7.</p>
<p dir="ltr">They're pretty much orthogonal so I'm not too worried about that but sure.</p>
<p dir="ltr">--Jason</p>