Make sure DMA buffers are released in savageDestroyContext. Usually
authorFelix Kuehling <fxkuehl@gmx.de>
Thu, 13 Jan 2005 16:02:05 +0000 (16:02 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Thu, 13 Jan 2005 16:02:05 +0000 (16:02 +0000)
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

index b3cf3a9982ea35578fc3ef44e1132129093a4b85..a1c5142d4ff448756465a1ef34f91ff0e69079a9 100644 (file)
@@ -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*/ 
       {