diff options
author | Aapo Tahkola <aet@rasterburn.org> | 2006-03-07 05:09:48 +0000 |
---|---|---|
committer | Aapo Tahkola <aet@rasterburn.org> | 2006-03-07 05:09:48 +0000 |
commit | 50f319242b880f99c5717dec4adcf16505802c94 (patch) | |
tree | 98389a2a62c229ccb38d1285738d0acf94bf5d91 /src/mesa/drivers/dri/r300/r300_ioctl.c | |
parent | ca007cb4496ad511a974c52e4acd74f0eed40e9c (diff) |
Various fallbacks, checks and tags.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_ioctl.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_ioctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_ioctl.c b/src/mesa/drivers/dri/r300/r300_ioctl.c index 548b6525a7..d807953506 100644 --- a/src/mesa/drivers/dri/r300/r300_ioctl.c +++ b/src/mesa/drivers/dri/r300/r300_ioctl.c @@ -625,6 +625,10 @@ void r300RefillCurrentDmaRegion(r300ContextPtr rmesa) dmabuf->refcount = 1; dmabuf->id = radeon_mm_alloc(rmesa, 4, RADEON_BUFFER_SIZE*16); + if (dmabuf->id == 0) { + WARN_ONCE("Whops! Dont know how to evict VBOs yet.\n"); + exit(1); + } rmesa->dma.current.buf = dmabuf; rmesa->dma.current.address = radeon_mm_ptr(rmesa, dmabuf->id); |