[Mesa-dev] [PATCH 6/6] i965: Use a line end cap width of 0.5 unless smooth lines enabled.

Rafael Antognolli rafael.antognolli at intel.com
Mon Jun 5 16:59:51 UTC 2017


Reviewed-by: Rafael Antognolli <rafael.antognolli at intel.com>

On Wed, May 10, 2017 at 11:47:30AM -0700, Kenneth Graunke wrote:
> This updates the Gen4-5 code to use a line end cap width of 0.5
> for non-smooth lines, and 1.0 for smooth lines - which is what we
> do on Gen6+.
> ---
>  src/mesa/drivers/dri/i965/brw_sf_state.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_sf_state.c b/src/mesa/drivers/dri/i965/brw_sf_state.c
> index 47506dc9537..2ea2bfc9540 100644
> --- a/src/mesa/drivers/dri/i965/brw_sf_state.c
> +++ b/src/mesa/drivers/dri/i965/brw_sf_state.c
> @@ -221,9 +221,10 @@ static void upload_sf_unit( struct brw_context *brw )
>     /* _NEW_LINE */
>     sf->sf6.line_width = U_FIXED(brw_get_line_width(brw), 1);
>  
> -   sf->sf6.line_endcap_aa_region_width = 1;
> -   if (ctx->Line.SmoothFlag)
> +   if (ctx->Line.SmoothFlag) {
>        sf->sf6.aa_enable = 1;
> +      sf->sf6.line_endcap_aa_region_width = 1;
> +   }
>  
>     sf->sf6.point_rast_rule = BRW_RASTRULE_UPPER_RIGHT;
>  
> -- 
> 2.12.2
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list