From afc57ef1dfb5bdf17411505d4dfbb03863a870bf Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 2 Oct 2007 21:51:14 +0300 Subject: nouveau: fix nv25_graph_context_init It was writing 4x the data in a loop. --- shared-core/nv20_graph.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shared-core') 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); } /* -- cgit v1.2.3