From f6b9e9c22b7fd1edc9195711c43428a7d0fbeaa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Fri, 27 Mar 2026 10:41:35 +0100 Subject: [PATCH] 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: --- src/gallium/drivers/r300/r300_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 799767e20d1..769ca0365bf 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -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);