summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <darktama@iinet.net.au>2007-01-02 16:35:00 +1100
committerBen Skeggs <darktama@iinet.net.au>2007-01-02 16:35:00 +1100
commit91855bb2540bbb824d4d5d437f3eb2d5d06c11ba (patch)
tree60c1b8cb1adefe21b3842ee1b56ed6bb464b46cc
parent861017e6d50f5724c179717f995322c498ee15db (diff)
nouveau: oops, forgot to free RAMIN..
-rw-r--r--shared-core/nouveau_fifo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-core/nouveau_fifo.c b/shared-core/nouveau_fifo.c
index 15d2d928..9f8c740e 100644
--- a/shared-core/nouveau_fifo.c
+++ b/shared-core/nouveau_fifo.c
@@ -590,6 +590,9 @@ void nouveau_fifo_free(drm_device_t* dev,int n)
NV_WRITE(NV_RAMIN + dev_priv->ramfc_offset + n*ctx_size + i, 0);
}
+ if (dev_priv->card_type >= NV_40)
+ nouveau_instmem_free(dev, dev_priv->fifos[n].ramin_grctx);
+
/* reenable the fifo caches */
NV_WRITE(NV_PFIFO_CACHES, 0x00000001);