summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorPekka Paalanen <pq@iki.fi>2007-10-02 21:51:14 +0300
committerPekka Paalanen <pq@iki.fi>2007-10-02 22:18:47 +0300
commitafc57ef1dfb5bdf17411505d4dfbb03863a870bf (patch)
treee5c666df78be3d54412068e2119a6a293f59157b /shared-core
parentffa3173ec4bb5a310b3f8539bb6c2f8589ce2ed5 (diff)
nouveau: fix nv25_graph_context_init
It was writing 4x the data in a loop.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nv20_graph.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shared-core/nv20_graph.c b/shared-core/nv20_graph.c
index 213d60cc..6b4c25e0 100644
--- a/shared-core/nv20_graph.c
+++ b/shared-core/nv20_graph.c
@@ -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);
}
/*