nvc0: multiply polygon offset units by 2
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 19 Feb 2011 19:26:49 +0000 (20:26 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 24 Feb 2011 16:35:35 +0000 (17:35 +0100)
Wasn't sure if this still was necessary because the piglit test
started to fail at some point on nv50 where we already do this.

src/gallium/drivers/nvc0/nvc0_state.c

index 666e3802979631aa9f6b0c769dd19c8ff1a66316..aa437195764dd8a37f51cad5d768c1345618fa91 100644 (file)
@@ -238,7 +238,7 @@ nvc0_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])));