diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv20_graph.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv20_graph.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/nouveau/nv20_graph.c b/drivers/gpu/drm/nouveau/nv20_graph.c index 183e37512ef9..e34ea30758f6 100644 --- a/drivers/gpu/drm/nouveau/nv20_graph.c +++ b/drivers/gpu/drm/nouveau/nv20_graph.c | |||
@@ -43,8 +43,6 @@ struct nv20_graph_engine { | |||
43 | int | 43 | int |
44 | nv20_graph_unload_context(struct drm_device *dev) | 44 | nv20_graph_unload_context(struct drm_device *dev) |
45 | { | 45 | { |
46 | struct drm_nouveau_private *dev_priv = dev->dev_private; | ||
47 | struct nouveau_fifo_engine *pfifo = &dev_priv->engine.fifo; | ||
48 | struct nouveau_channel *chan; | 46 | struct nouveau_channel *chan; |
49 | struct nouveau_gpuobj *grctx; | 47 | struct nouveau_gpuobj *grctx; |
50 | u32 tmp; | 48 | u32 tmp; |
@@ -62,7 +60,7 @@ nv20_graph_unload_context(struct drm_device *dev) | |||
62 | 60 | ||
63 | nv_wr32(dev, NV10_PGRAPH_CTX_CONTROL, 0x10000000); | 61 | nv_wr32(dev, NV10_PGRAPH_CTX_CONTROL, 0x10000000); |
64 | tmp = nv_rd32(dev, NV10_PGRAPH_CTX_USER) & 0x00ffffff; | 62 | tmp = nv_rd32(dev, NV10_PGRAPH_CTX_USER) & 0x00ffffff; |
65 | tmp |= (pfifo->channels - 1) << 24; | 63 | tmp |= 31 << 24; |
66 | nv_wr32(dev, NV10_PGRAPH_CTX_USER, tmp); | 64 | nv_wr32(dev, NV10_PGRAPH_CTX_USER, tmp); |
67 | return 0; | 65 | return 0; |
68 | } | 66 | } |
@@ -796,10 +794,6 @@ nv20_graph_create(struct drm_device *dev) | |||
796 | NVOBJ_ENGINE_ADD(dev, GR, &pgraph->base); | 794 | NVOBJ_ENGINE_ADD(dev, GR, &pgraph->base); |
797 | nouveau_irq_register(dev, 12, nv20_graph_isr); | 795 | nouveau_irq_register(dev, 12, nv20_graph_isr); |
798 | 796 | ||
799 | /* nvsw */ | ||
800 | NVOBJ_CLASS(dev, 0x506e, SW); | ||
801 | NVOBJ_MTHD (dev, 0x506e, 0x0500, nv04_graph_mthd_page_flip); | ||
802 | |||
803 | NVOBJ_CLASS(dev, 0x0030, GR); /* null */ | 797 | NVOBJ_CLASS(dev, 0x0030, GR); /* null */ |
804 | NVOBJ_CLASS(dev, 0x0039, GR); /* m2mf */ | 798 | NVOBJ_CLASS(dev, 0x0039, GR); /* m2mf */ |
805 | NVOBJ_CLASS(dev, 0x004a, GR); /* gdirect */ | 799 | NVOBJ_CLASS(dev, 0x004a, GR); /* gdirect */ |