nv50: multiply polygon offset units by 2
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 29 Dec 2009 11:04:34 +0000 (12:04 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 31 Dec 2009 13:34:22 +0000 (14:34 +0100)
src/gallium/drivers/nv50/nv50_state.c

index 18a2b819d8b609749a244b95f0889831cad58e76..30b2b0f91bfb93799182edd349a12941ca6ce049 100644 (file)
@@ -392,7 +392,7 @@ nv50_rasterizer_state_create(struct pipe_context *pipe,
                so_method(so, tesla, NV50TCL_POLYGON_OFFSET_FACTOR, 1);
                so_data  (so, fui(cso->offset_scale));
                so_method(so, tesla, NV50TCL_POLYGON_OFFSET_UNITS, 1);
-               so_data  (so, fui(cso->offset_units));
+               so_data  (so, fui(cso->offset_units * 2.0f));
        }
 
        rso->pipe = *cso;