aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvc0_grctx.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-05-27 01:50:59 -0400
committerBen Skeggs <bskeggs@redhat.com>2011-06-23 01:57:56 -0400
commit752ab0a0927add86c8b6604e01147041509b2af4 (patch)
tree03b7048265f39d10a67cc7c5876f5f17a9b77ebd /drivers/gpu/drm/nouveau/nvc0_grctx.c
parent2b6f1c5f17305dd5d9b1c566be31101a66fae4c9 (diff)
drm/nvc0/gr: fill in some more data for 0xc1/0xc8/0xce
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvc0_grctx.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_grctx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_grctx.c b/drivers/gpu/drm/nouveau/nvc0_grctx.c
index f2f9825ab0a6..31018eaf5279 100644
--- a/drivers/gpu/drm/nouveau/nvc0_grctx.c
+++ b/drivers/gpu/drm/nouveau/nvc0_grctx.c
@@ -1783,10 +1783,11 @@ nvc0_grctx_generate(struct nouveau_channel *chan)
1783 nv_wr32(dev, 0x40587c, 0x00000000); 1783 nv_wr32(dev, 0x40587c, 0x00000000);
1784 1784
1785 if (1) { 1785 if (1) {
1786 const u8 chipset_tp_max[] = { 16, 0, 0, 4, 8 }; 1786 const u8 chipset_tp_max[] = { 16, 4, 0, 4, 8, 0, 0, 0,
1787 16, 0, 0, 0, 0, 0, 8, 0 };
1787 u8 max = chipset_tp_max[dev_priv->chipset & 0x0f]; 1788 u8 max = chipset_tp_max[dev_priv->chipset & 0x0f];
1788 u8 tpnr[GPC_MAX]; 1789 u8 tpnr[GPC_MAX];
1789 u8 data[32]; 1790 u8 data[TP_MAX];
1790 1791
1791 memcpy(tpnr, priv->tp_nr, sizeof(priv->tp_nr)); 1792 memcpy(tpnr, priv->tp_nr, sizeof(priv->tp_nr));
1792 memset(data, 0x1f, sizeof(data)); 1793 memset(data, 0x1f, sizeof(data));