mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
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>
(cherry picked from commit b625bcc601)
This commit is contained in:
parent
1492237b74
commit
cfba0e166a
1 changed files with 1 additions and 1 deletions
|
|
@ -265,7 +265,7 @@ static void upload_sf_unit( struct brw_context *brw )
|
|||
/* _NEW_PROGRAM | _NEW_POINT */
|
||||
sf->sf7.use_point_size_state = !(ctx->VertexProgram.PointSizeEnabled ||
|
||||
ctx->Point._Attenuated);
|
||||
sf->sf7.aa_line_distance_mode = 0;
|
||||
sf->sf7.aa_line_distance_mode = brw->is_g4x || brw->gen == 5;
|
||||
|
||||
/* might be BRW_NEW_PRIMITIVE if we have to adjust pv for polygons:
|
||||
* _NEW_LIGHT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue