From 31f094e6911bea91df72fb200aaa05b553e0302d Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 4 May 2017 11:03:47 -0700 Subject: 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 --- src/mesa/drivers/dri/i965/genX_state_upload.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/drivers') 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; -- cgit v1.2.3