projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1d322a
)
Make sure DMA buffers are released in savageDestroyContext. Usually
author
Felix Kuehling
<fxkuehl@gmx.de>
Thu, 13 Jan 2005 16:02:05 +0000
(16:02 +0000)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/savage/savage_xmesa.c
b/src/mesa/drivers/dri/savage/savage_xmesa.c
index b3cf3a9982ea35578fc3ef44e1132129093a4b85..a1c5142d4ff448756465a1ef34f91ff0e69079a9 100644
(file)
--- 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*/
{