nouveau: fix nv25_graph_context_init
authorPekka Paalanen <pq@iki.fi>
Tue, 2 Oct 2007 18:51:14 +0000 (21:51 +0300)
committerPekka Paalanen <pq@iki.fi>
Tue, 2 Oct 2007 19:18:47 +0000 (22:18 +0300)
It was writing 4x the data in a loop.

shared-core/nv20_graph.c

index 213d60c..6b4c25e 100644 (file)
@@ -256,11 +256,10 @@ write32 #1 block at +0x00740d34 NV_PRAMIN.GRCTX0+0x614 of 3136 (0xc40) elements:
        INSTANCE_WR(ctx, (0x614/4)+25, 0x00000001);
        INSTANCE_WR(ctx, (0x614/4)+27, 0x00040000);
        INSTANCE_WR(ctx, (0x614/4)+28, 0x00010000);
-       for (i=0; i<0x880; i+=4) {
+       for (i=0; i < 0x880/4; i+=4) {
                INSTANCE_WR(ctx, (0x1b04/4)+i+0, 0x10700ff9);
                INSTANCE_WR(ctx, (0x1b04/4)+i+1, 0x0436086c);
                INSTANCE_WR(ctx, (0x1b04/4)+i+2, 0x000c001b);
-               INSTANCE_WR(ctx, (0x1b04/4)+i+3, 0x00000000);
        }
 
 /*