crocus: change the line width workaround for gfx4/5

This fixes piglit line-flat-clip-color and the hud fps counter.

Fixes: 6b7a68b7c2 ("crocus: add missing line smooth bits.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15229>
(cherry picked from commit a10b5d7086)
This commit is contained in:
Dave Airlie 2022-03-03 15:37:25 +10:00 committed by Dylan Baker
parent 517d35c5da
commit e5a966781d
3 changed files with 3 additions and 4 deletions

View file

@ -958,7 +958,7 @@
"description": "crocus: change the line width workaround for gfx4/5",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "6b7a68b7c21eeff1aa037b68b6fb9ab971fe9982"
},

View file

@ -96,7 +96,6 @@ spec@!opengl 1.1@windowoverlap,Fail
spec@!opengl 1.1@depthstencil-default_fb-blit,Fail
spec@!opengl 1.1@line-aa-width,Fail
spec@!opengl 1.1@line-flat-clip-color,Fail
spec@!opengl 1.1@linestipple,Fail
spec@!opengl 1.1@linestipple@Factor 2x,Fail
spec@!opengl 1.1@linestipple@Factor 3x,Fail

View file

@ -1984,9 +1984,9 @@ get_line_width(const struct pipe_rasterizer_state *state)
* "Grid Intersection Quantization" rules as specified by the
* "Zero-Width (Cosmetic) Line Rasterization" section of the docs.
*/
line_width = 0.0f;
/* hack around this for gfx4/5 fps counters in hud. */
line_width = GFX_VER < 6 ? 1.5f : 0.0f;
}
return line_width;
}