summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/savage/savage_xmesa.c
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2005-01-13 16:02:05 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2005-01-13 16:02:05 +0000
commita7ab2b2e0b56e64d1d11a811e31309793f6a8caa (patch)
treecc177c430a159a113e0fef5e3e195ea67fa07bf5 /src/mesa/drivers/dri/savage/savage_xmesa.c
parentb1d322a1e76f27a22b4c876ef96655728f4de692 (diff)
Make sure DMA buffers are released in savageDestroyContext. Usually
the DRM would reclaim DMA buffers, but if one process creates and destroys many contexts it can still run out of DMA buffers.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savage_xmesa.c')
-rw-r--r--src/mesa/drivers/dri/savage/savage_xmesa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c
index b3cf3a9982..a1c5142d4f 100644
--- a/src/mesa/drivers/dri/savage/savage_xmesa.c
+++ b/src/mesa/drivers/dri/savage/savage_xmesa.c
@@ -505,7 +505,8 @@ savageDestroyContext(__DRIcontextPrivate *driContextPriv)
if (imesa) {
savageTextureObjectPtr next_t, t;
- FLUSH_BATCH(imesa);
+ savageFlushVertices(imesa);
+ savageFlushCmdBuf(imesa, GL_TRUE); /* release DMA buffer */
/* update for multi-tex*/
{