aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-05-04 11:03:47 -0700
committerKenneth Graunke <[email protected]>2017-05-04 16:17:34 -0700
commit31f094e6911bea91df72fb200aaa05b553e0302d (patch)
tree0c4e0fa17f6fa7235f4da1c7f23a171cf92ac8fc /src/mesa
parent194d9b27cc3fb49753a8ae41a322f8903f4e06cd (diff)
i965: Fix line width on Cherryview.
We just add another field to gen8.xml for the Cherryview line width, rather than trying to replicate the gymnastics done in the Vulkan driver to use gen9 SF pack functions. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/genX_state_upload.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c
index ceeacfcdef7..b6aa7c84d1d 100644
--- a/src/mesa/drivers/dri/i965/genX_state_upload.c
+++ b/src/mesa/drivers/dri/i965/genX_state_upload.c
@@ -1379,7 +1379,14 @@ genX(upload_sf)(struct brw_context *brw)
#endif
/* _NEW_LINE */
+#if GEN_GEN == 8
+ if (brw->is_cherryview)
+ sf.CHVLineWidth = brw_get_line_width_float(brw);
+ else
+ sf.LineWidth = brw_get_line_width_float(brw);
+#else
sf.LineWidth = brw_get_line_width_float(brw);
+#endif
if (ctx->Line.SmoothFlag) {
sf.LineEndCapAntialiasingRegionWidth = _10pixels;