mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 03:10:25 +01:00
add a mem use for current dma buffer
This commit is contained in:
parent
faab84cfa6
commit
36235e5ff1
1 changed files with 5 additions and 2 deletions
|
|
@ -439,9 +439,12 @@ void r300RefillCurrentDmaRegion(r300ContextPtr rmesa, int size)
|
|||
rmesa->dma.flush(rmesa);
|
||||
}
|
||||
|
||||
if (rmesa->dma.current.buf)
|
||||
if (rmesa->dma.current.buf) {
|
||||
#ifdef USER_BUFFERS
|
||||
r300_mem_use(rmesa, rmesa->dma.current.buf->id);
|
||||
#endif
|
||||
r300ReleaseDmaRegion(rmesa, &rmesa->dma.current, __FUNCTION__);
|
||||
|
||||
}
|
||||
if (rmesa->dma.nr_released_bufs > 4)
|
||||
r300FlushCmdBuf(rmesa, __FUNCTION__);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue