summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-05-10 02:45:53 -0700
committerKenneth Graunke <[email protected]>2017-06-14 15:56:21 -0700
commitb6d56c747cbce7b9ca297be1c6f2c2b7ca91842d (patch)
treed8ea3d61f59bb765aaa0a9ba4ee792acb16590a1
parent6563d5287b2f188d12ec63b8356075f9b1c78309 (diff)
i965: Use a line end cap width of 0.5 unless smooth lines enabled.
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+. Reviewed-by: Rafael Antognolli <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_sf_state.c5
1 files 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 78ed71e1ba9..0c3cbce2d20 100644
--- a/src/mesa/drivers/dri/i965/brw_sf_state.c
+++ b/src/mesa/drivers/dri/i965/brw_sf_state.c
@@ -126,9 +126,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;