summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/crocus/crocus_state.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-04-21 04:23:05 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-04-21 04:23:05 +0000
commita09152815d99b8a68f7f5ed0e44bab39dd14a1e5 (patch)
tree2d0fdc70c25e62ac40fe0512a56b269564afb8f8 /lib/mesa/src/gallium/drivers/crocus/crocus_state.c
parent5141f851e7304b6ee32a98117c378cb814079903 (diff)
Import Mesa 21.3.8
Diffstat (limited to 'lib/mesa/src/gallium/drivers/crocus/crocus_state.c')
-rw-r--r--lib/mesa/src/gallium/drivers/crocus/crocus_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mesa/src/gallium/drivers/crocus/crocus_state.c b/lib/mesa/src/gallium/drivers/crocus/crocus_state.c
index 4c3574216..61820ed22 100644
--- a/lib/mesa/src/gallium/drivers/crocus/crocus_state.c
+++ b/lib/mesa/src/gallium/drivers/crocus/crocus_state.c
@@ -1983,9 +1983,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;
}