From a4ac60a10239bb6d19f6d89f2c044e9b7b29837c Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Sun, 15 Feb 2009 21:52:19 +1000 Subject: nv50: context info for chipset 0xa0 --- shared-core/nv50_graph.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'shared-core/nv50_graph.c') diff --git a/shared-core/nv50_graph.c b/shared-core/nv50_graph.c index 41a9da72..cbf6fd62 100644 --- a/shared-core/nv50_graph.c +++ b/shared-core/nv50_graph.c @@ -112,6 +112,9 @@ nv50_graph_init_ctxctl(struct drm_device *dev) case 0x98: voodoo = nv98_ctxprog; break; + case 0xa0: + voodoo = nva0_ctxprog; + break; case 0xaa: voodoo = nvaa_ctxprog; break; @@ -210,6 +213,9 @@ nv50_graph_create_context(struct nouveau_channel *chan) case 0x98: ctxvals = nv98_ctxvals; break; + case 0xa0: + ctxvals = nva0_ctxvals; + break; case 0xaa: ctxvals = nvaa_ctxvals; break; @@ -241,7 +247,7 @@ nv50_graph_create_context(struct nouveau_channel *chan) } INSTANCE_WR(ctx, 0x00000/4, chan->ramin->instance >> 12); - if (dev_priv->chipset == 0xaa) + if ((dev_priv->chipset & 0xf0) == 0xa0) INSTANCE_WR(ctx, 0x00004/4, 0x00000002); else INSTANCE_WR(ctx, 0x0011c/4, 0x00000002); -- cgit v1.2.3