From a7ab2b2e0b56e64d1d11a811e31309793f6a8caa Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Thu, 13 Jan 2005 16:02:05 +0000 Subject: [PATCH] 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. --- src/mesa/drivers/dri/savage/savage_xmesa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c index b3cf3a9982e..a1c5142d4ff 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*/ { -- 2.30.2