Skip to content

Commit

Permalink
drm/nv50/gr: fix overlap while zeroing zcull regions
Browse files Browse the repository at this point in the history
The specified stride was not correct, resulting in erases overlapping
and part of the zcull regions being not erased at all.

Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Pierre Moreau authored and Ben Skeggs committed Jun 17, 2014
1 parent 23f6784 commit c03d082
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/gpu/drm/nouveau/core/engine/graph/nv50.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,10 +991,10 @@ nv50_graph_init(struct nouveau_object *object)

/* zero out zcull regions */
for (i = 0; i < 8; i++) {
nv_wr32(priv, 0x402c20 + (i * 8), 0x00000000);
nv_wr32(priv, 0x402c24 + (i * 8), 0x00000000);
nv_wr32(priv, 0x402c28 + (i * 8), 0x00000000);
nv_wr32(priv, 0x402c2c + (i * 8), 0x00000000);
nv_wr32(priv, 0x402c20 + (i * 0x10), 0x00000000);
nv_wr32(priv, 0x402c24 + (i * 0x10), 0x00000000);
nv_wr32(priv, 0x402c28 + (i * 0x10), 0x00000000);
nv_wr32(priv, 0x402c2c + (i * 0x10), 0x00000000);
}
return 0;
}
Expand Down

0 comments on commit c03d082

Please sign in to comment.