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>
This commit is contained in:
parent
bbbbf39559
commit
a10b5d7086
|
@ -94,7 +94,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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue