r300: lower Z16 polygon offset scale coefficient

The previous value was too high and led to issues in tesseract.

Fixes: 83d636fc7 ("r300: Z16 polygon offset fixes")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40674>
This commit is contained in:
Pavel Ondračka 2026-03-27 10:41:35 +01:00 committed by Marge Bot
parent e68e519b91
commit f6b9e9c22b

View file

@ -1546,7 +1546,7 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
/* Build the two command buffers for polygon offset setup. */
if (polygon_offset_enable) {
float scale = state->offset_scale * 256 * 12;
float scale = state->offset_scale * 16 * 12;
float offset = state->offset_units * 256 * 2;
BEGIN_CB(rs->cb_poly_offset_zb16, 5);