From 31f094e6911bea91df72fb200aaa05b553e0302d Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 4 May 2017 11:03:47 -0700 Subject: [PATCH] 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/intel/genxml/gen8.xml | 1 + src/mesa/drivers/dri/i965/genX_state_upload.c | 7 +++++++ 2 files changed, 8 insertions(+) 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; -- 2.30.2