add a mem use for current dma buffer
authorDave Airlie <airlied@nx6125b.(none)>
Thu, 21 Jun 2007 08:35:00 +0000 (18:35 +1000)
committerDave Airlie <airlied@nx6125b.(none)>
Thu, 21 Jun 2007 08:35:00 +0000 (18:35 +1000)
src/mesa/drivers/dri/r300/r300_ioctl.c

index 664a36a78b32b650514c2eedd6a5e749654ebfeb..f7a44832e9b2095d6704d16a6de48723f9182718 100644 (file)
@@ -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__);