diff options
author | Kenneth Graunke <[email protected]> | 2014-11-03 17:56:38 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-11-08 22:24:08 -0800 |
commit | f3b709c0ac073cd0ec90a3a0d91d1ee94668e043 (patch) | |
tree | f826b0ce151298ae85cab145dae069f6e4fdf182 /src/mesa/drivers/dri/i965/brw_context.c | |
parent | 6dab04d7e3af2e0be8a05ca2df8c5669a5f54937 (diff) |
i965: Advertise a line width of 40.0 on Cherryview and Skylake.
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 <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index eaabd43808e..8b0f391ecda 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -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; |