mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 05:40:13 +01:00
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 <kenneth@whitecape.org> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
This commit is contained in:
parent
6dab04d7e3
commit
f3b709c0ac
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue