r200: make use of DMA buffers for Elts a lot better.
authorDave Airlie <airlied@redhat.com>
Fri, 26 Jun 2009 05:05:02 +0000 (15:05 +1000)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 18 Aug 2009 17:19:45 +0000 (13:19 -0400)
commit1279cdcb1f3e37a91bb5252826386205dc3e579d
treeca8a4a84e5f715330c2931eba23f8200c5df212f
parentae290fd93e41d3f33546d0376ea7ff93bb8fcf31
r200: make use of DMA buffers for Elts a lot better.

This allows us to return the unused portion of the dma buffer
to the allocator instead of wasting nearly 16k a pop.

Cherry picked and ported to new code by Pauli.
src/mesa/drivers/dri/r200/r200_cmdbuf.c
src/mesa/drivers/dri/radeon/radeon_dma.c
src/mesa/drivers/dri/radeon/radeon_dma.h