Mesa (master): freedreno/a3xx: double the polygon offset value

Ilia Mirkin imirkin at kemper.freedesktop.org
Mon Aug 17 15:41:44 UTC 2015


Module: Mesa
Branch: master
Commit: 12e1bf0b68b3c0e8dccb74384554f56d22eda961
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=12e1bf0b68b3c0e8dccb74384554f56d22eda961

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sun Aug 16 15:26:38 2015 -0400

freedreno/a3xx: double the polygon offset value

A few other drivers do this, fixes the gl-1.4-polygon-offset piglit test

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c b/src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c
index 9c16804..583caaa 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c
@@ -73,7 +73,7 @@ fd3_rasterizer_state_create(struct pipe_context *pctx,
 	so->gras_su_poly_offset_scale =
 			A3XX_GRAS_SU_POLY_OFFSET_SCALE_VAL(cso->offset_scale);
 	so->gras_su_poly_offset_offset =
-			A3XX_GRAS_SU_POLY_OFFSET_OFFSET(cso->offset_units);
+			A3XX_GRAS_SU_POLY_OFFSET_OFFSET(cso->offset_units * 2.0f);
 
 	so->gras_su_mode_control =
 			A3XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH(cso->line_width/2.0);




More information about the mesa-commit mailing list