nv50: multiply polygon offset units by 2
authorBen Skeggs <bskeggs@redhat.com>
Tue, 1 Mar 2011 03:11:26 +0000 (13:11 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 1 Mar 2011 04:44:43 +0000 (14:44 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
src/gallium/drivers/nv50/nv50_state.c

index ed2fd3b0f88edf20f2e5e6a868028388b959b8e3..6b1106341cea12bc5693630e6a29705bec8e6cfc 100644 (file)
@@ -234,7 +234,7 @@ nv50_rasterizer_state_create(struct pipe_context *pipe,
       SB_BEGIN_3D(so, POLYGON_OFFSET_FACTOR, 1);
       SB_DATA    (so, fui(cso->offset_scale));
       SB_BEGIN_3D(so, POLYGON_OFFSET_UNITS, 1);
-      SB_DATA    (so, fui(cso->offset_units)); /* XXX: multiply by 2 ? */
+      SB_DATA    (so, fui(cso->offset_units * 2.0f));
    }
 
    assert(so->size < (sizeof(so->state) / sizeof(so->state[0])));