nv50: fix line stipple
authorBen Skeggs <skeggsb@gmail.com>
Tue, 24 Jun 2008 20:01:30 +0000 (06:01 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Sun, 29 Jun 2008 05:46:53 +0000 (15:46 +1000)
src/gallium/drivers/nv50/nv50_state.c

index cffcbc3e7d30922905ca641e6a2d613859e528b4..d72886ac596240ed2e0cdd3bb5e9862b85e0c9bb 100644 (file)
@@ -157,7 +157,7 @@ nv50_rasterizer_state_create(struct pipe_context *pipe,
                so_method(so, tesla, NV50TCL_LINE_STIPPLE_ENABLE, 1);
                so_data  (so, 1);
                so_method(so, tesla, NV50TCL_LINE_STIPPLE_PATTERN, 1);
-               so_data  (so, (cso->line_stipple_pattern << 16) |
+               so_data  (so, (cso->line_stipple_pattern << 8) |
                               cso->line_stipple_factor);
        } else {
                so_method(so, tesla, NV50TCL_LINE_STIPPLE_ENABLE, 1);