From: Kenneth Graunke Date: Thu, 4 May 2017 18:03:47 +0000 (-0700) Subject: i965: Fix line width on Cherryview. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31f094e6911bea91df72fb200aaa05b553e0302d;p=mesa.git 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 --- diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8.xml index c57ddb41a16..13924665601 100644 --- a/src/intel/genxml/gen8.xml +++ b/src/intel/genxml/gen8.xml @@ -2032,6 +2032,7 @@ + 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;