summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-07-17 14:06:05 +1000
committerBen Skeggs <skeggsb@gmail.com>2007-07-17 14:06:05 +1000
commit875dd1e53852d231b60eb82bfed33c016f92f3b8 (patch)
tree4c3a782301ae2586baffa3ff1904686159421f72
parentec67c2def9af16bf9252d6742aec815b817f135a (diff)
nouveau: Destroy PGRAPH context table on PGRAPH takedown
-rw-r--r--shared-core/nv20_graph.c3
-rw-r--r--shared-core/nv30_graph.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/shared-core/nv20_graph.c b/shared-core/nv20_graph.c
index e6aa1e2a..8af3bd12 100644
--- a/shared-core/nv20_graph.c
+++ b/shared-core/nv20_graph.c
@@ -242,5 +242,8 @@ int nv20_graph_init(struct drm_device *dev) {
void nv20_graph_takedown(struct drm_device *dev)
{
+ struct drm_nouveau_private *dev_priv = dev->dev_private;
+
+ nouveau_gpuobj_ref_del(dev, &dev_priv->ctx_table);
}
diff --git a/shared-core/nv30_graph.c b/shared-core/nv30_graph.c
index 23e0f7f0..d7138772 100644
--- a/shared-core/nv30_graph.c
+++ b/shared-core/nv30_graph.c
@@ -281,5 +281,8 @@ int nv30_graph_init(struct drm_device *dev)
void nv30_graph_takedown(struct drm_device *dev)
{
+ struct drm_nouveau_private *dev_priv = dev->dev_private;
+
+ nouveau_gpuobj_ref_del(dev, &dev_priv->ctx_table);
}