aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-03-26 01:44:04 -0400
committerBen Skeggs <bskeggs@redhat.com>2015-04-14 03:00:54 -0400
commitddec1a2b4c01b51134eca13fe6915d945745f1c9 (patch)
treec2e52652ac8341e256f2e0044ea1f5055765fc2a
parent6eb70826215f3f3ac04b4749ac0de1ac06047e4f (diff)
drm/nouveau/gr/gm107: very slightly demagic part of attrib cb setup
No idea if "3" is a constant or derived from something else, but the value is unchanged in the limited traces of gm107/gm204 I have here. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
index 206f8caafe1c..24072b2b8b12 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
@@ -926,7 +926,7 @@ gm107_grctx_generate_attrib(struct gf100_grctx *info)
926 mmio_wr32(info, o + 0xe4, as); 926 mmio_wr32(info, o + 0xe4, as);
927 mmio_wr32(info, o + 0xf8, ao); 927 mmio_wr32(info, o + 0xf8, ao);
928 ao += impl->alpha_nr_max * priv->ppc_tpc_nr[gpc][ppc]; 928 ao += impl->alpha_nr_max * priv->ppc_tpc_nr[gpc][ppc];
929 mmio_wr32(info, u, (0x715 /*XXX*/ << 16) | bs); 929 mmio_wr32(info, u, ((bs / 3 /*XXX*/) << 16) | bs);
930 } 930 }
931 } 931 }
932} 932}