i965: Use true AA line distance on G45/Ironlake.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Apr 2017 21:28:49 +0000 (14:28 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 29 Apr 2017 00:03:33 +0000 (17:03 -0700)
commitb625bcc601a16fab1962f9ed569700d3d08738b9
treec66fb4600569b6a74bce9f05f1bca45723e9fb52
parent81149c8f52fa59f72b7a3587e4309a695d77fa97
i965: Use true AA line distance on G45/Ironlake.

The original Broadwater and Crestline platforms computed antialiased
line distances using "manhattan" distance, aka a + b = c.  Eaglelake
and Cantiga added "true" distance, which apparently does something
like max(a, b) + min(a, b) / 4.  Not exactly "true", but at least
more accurate.

The G45 documentation indicates that the old manhattan distance setting
is "only for debug purposes" and should never be used.  The Ironlake
documentation no longer mentions AALINEDISTANCE_MANHATTAN, though it
does still contain the narrative about the feature.

At any rate, we should use the more accurate mode.

Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_sf_state.c