From: Felix Kuehling Date: Thu, 13 Jan 2005 16:02:05 +0000 (+0000) Subject: Make sure DMA buffers are released in savageDestroyContext. Usually X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7ab2b2e0b56e64d1d11a811e31309793f6a8caa;p=mesa.git 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. --- 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*/ {