<p dir="ltr">Oh, never mind - I see there's another hunk that my mailer had folded away for some reason. I'm happy that it's correct now :)</p>
<div class="gmail_quote">On Jul 13, 2015 23:33, "Neil Roberts" <<a href="mailto:neil@linux.intel.com">neil@linux.intel.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Chris Forbes <<a href="mailto:chrisf@ijw.co.nz">chrisf@ijw.co.nz</a>> writes:<br>
<br>
> Nitpicks aside, I don't think this is a great idea now that you've got<br>
> the SKL PI working.<br>
<br>
Can you explain why you don't think this is a good idea? Is it because<br>
it is an optimisation for something that is not known to be a big use<br>
case so carrying around the extra code just adds unnecessary maintenance<br>
burden? I could agree with that so I'm happy to abandon the patch for<br>
now if that's the general consensus.<br>
<br>
> I also think it's broken -- you need to arrange to have the centroid<br>
> barycentric coords delivered to the FS thread, which won't be<br>
> happening if this is the *only* use of them. Masked in the tests,<br>
> because they compare with a centroid-qualified input. [I'm assuming<br>
> you don't always get these delivered to the FS in SKL, but no docs<br>
> access...]<br>
<br>
The changes to brw_compute_barycentric_interp_modes in the patch ensure<br>
that the centroid barycentric coords are delivered whenever<br>
interpolateAtCentroid is used in a shader. I don't think this is a<br>
problem. At least it seems to work in a simple test without using a<br>
separate varying with the centroid qualifier.<br>
<br>
Regards,<br>
- Neil<br>
</blockquote></div>