drm/nouveau/gr/gm107: very slightly demagic part of attrib cb setup
authorBen Skeggs <bskeggs@redhat.com>
Thu, 26 Mar 2015 05:44:04 +0000 (15:44 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 14 Apr 2015 07:00:54 +0000 (17:00 +1000)
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>
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c

index 206f8caafe1ceca4152988a58f8d1c6d72be5be4..24072b2b8b12e0cffe33dd1334e3947652c50851 100644 (file)
@@ -926,7 +926,7 @@ gm107_grctx_generate_attrib(struct gf100_grctx *info)
                        mmio_wr32(info, o + 0xe4, as);
                        mmio_wr32(info, o + 0xf8, ao);
                        ao += impl->alpha_nr_max * priv->ppc_tpc_nr[gpc][ppc];
-                       mmio_wr32(info, u, (0x715 /*XXX*/ << 16) | bs);
+                       mmio_wr32(info, u, ((bs / 3 /*XXX*/) << 16) | bs);
                }
        }
 }