i965: Advertise a line width of 40.0 on Cherryview and Skylake.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 4 Nov 2014 01:56:38 +0000 (17:56 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 9 Nov 2014 06:24:08 +0000 (22:24 -0800)
According to the documentation, line widths higher than 40.0 may have
quality problems.  That's already 20 times larger than we've been
exposing, so it seems totally sufficient.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_context.c

index eaabd43808e73c156f9d70cc6d218c3320778f4c..8b0f391ecda8243e460bc7ec968451f54cc1e54b 100644 (file)
@@ -421,7 +421,11 @@ brw_initialize_context_constants(struct brw_context *brw)
 
    ctx->Const.MinLineWidth = 1.0;
    ctx->Const.MinLineWidthAA = 1.0;
-   if (brw->gen >= 6) {
+   if (brw->gen >= 9 || brw->is_cherryview) {
+      ctx->Const.MaxLineWidth = 40.0;
+      ctx->Const.MaxLineWidthAA = 40.0;
+      ctx->Const.LineWidthGranularity = 0.125;
+   } else if (brw->gen >= 6) {
       ctx->Const.MaxLineWidth = 7.875;
       ctx->Const.MaxLineWidthAA = 7.875;
       ctx->Const.LineWidthGranularity = 0.125;