mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
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.
This commit is contained in:
parent
b1d322a1e7
commit
a7ab2b2e0b
1 changed files with 2 additions and 1 deletions
|
|
@ -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*/
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue