[Mesa-dev] [PATCH 1/2] i965: Use true AA line distance on G45/Ironlake.

Kenneth Graunke kenneth at whitecape.org
Thu Apr 27 05:50:57 UTC 2017


On Wednesday, April 26, 2017 3:45:00 PM PDT Francisco Jerez wrote:
> Kenneth Graunke <kenneth at whitecape.org> writes:
> 
> > The original Broadwater and Crestline platforms computed antialiased
> > line distances using "manhattan" distance, aka a + b = c.  Eaglelake
> > and Cantiga added "true" distance, aka a^2 + b^2 = c^2, which is
> > obviously superior.
> >
> 
> The hardware docs are incredibly optimistic calling the improved AA line
> distance mode "true", in reality the strips and fans unit does something
> along the lines of 'max(a, b) + min(a, b) / 4' in "true" distance mode
> in order to avoid calculating the square root.  At any rate, it's still
> better than manhattan.  Series is:
> 
> Reviewed-by: Francisco Jerez <currojerez at riseup.net>

Oh, right, this is True(tm) distance...I'd forgotten about that.
Thanks for the reminder!  I've removed the pythagoreon theorem from the
commit message and replaced it with yours, and dropped the "obviously"
part of the comment :)

--Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170426/55b65cc7/attachment.sig>


More information about the mesa-dev mailing list