projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faab84c
)
add a mem use for current dma buffer
author
Dave Airlie
<airlied@nx6125b.(none)>
Thu, 21 Jun 2007 08:35:00 +0000
(18:35 +1000)
committer
Dave Airlie
<airlied@nx6125b.(none)>
Thu, 21 Jun 2007 08:35:00 +0000
(18:35 +1000)
src/mesa/drivers/dri/r300/r300_ioctl.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_ioctl.c
b/src/mesa/drivers/dri/r300/r300_ioctl.c
index 664a36a78b32b650514c2eedd6a5e749654ebfeb..f7a44832e9b2095d6704d16a6de48723f9182718 100644
(file)
--- a/
src/mesa/drivers/dri/r300/r300_ioctl.c
+++ b/
src/mesa/drivers/dri/r300/r300_ioctl.c
@@
-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__);