diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv20_graph.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv20_graph.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nv20_graph.c b/drivers/gpu/drm/nouveau/nv20_graph.c index 385e2b49a554..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 | } |