Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269652
b: refs/heads/master
c: 64c2502
h: refs/heads/master
v: v3
  • Loading branch information
Ben Skeggs committed Sep 20, 2011
1 parent cc65048 commit aec3c7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e432d48f87543731fff2b19563420877d8a0c4cc
refs/heads/master: 64c2502b77bf95b0f30d470109c2829cfa7d200e
8 changes: 2 additions & 6 deletions trunk/drivers/gpu/drm/nouveau/nvc0_grctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1786,11 +1786,7 @@ nvc0_grctx_generate(struct nouveau_channel *chan)
nv_wr32(dev, 0x40587c, 0x00000000);

if (1) {
const u8 chipset_tp_max[] = { 16, 4, 0, 4, 8, 0, 0, 0,
16, 0, 0, 0, 0, 0, 8, 4 };
u8 max = chipset_tp_max[dev_priv->chipset & 0x0f];
u8 tpnr[GPC_MAX];
u8 data[TP_MAX];
u8 tpnr[GPC_MAX], data[TP_MAX];

memcpy(tpnr, priv->tp_nr, sizeof(priv->tp_nr));
memset(data, 0x1f, sizeof(data));
Expand All @@ -1804,7 +1800,7 @@ nvc0_grctx_generate(struct nouveau_channel *chan)
data[tp] = gpc;
}

for (i = 0; i < max / 4; i++)
for (i = 0; i < 4; i++)
nv_wr32(dev, 0x4060a8 + (i * 4), ((u32 *)data)[i]);
}

Expand Down

0 comments on commit aec3c7d

Please sign in to comment.