radeon: Optimize memory handling for dma operations.
authorPauli Nieminen <suokkos@gmail.com>
Fri, 14 Aug 2009 19:10:24 +0000 (22:10 +0300)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 18 Aug 2009 17:19:25 +0000 (13:19 -0400)
commitbbf2b5c4ffcb6755d34a5b698445aecf604e45fb
treebb45216d7e5ad6eb6a068677faa7727b0d961ff2
parentc745c87b3ecd6d9b734c48b0afa3d60e1a44d638
radeon: Optimize memory handling for dma operations.

We keep dma buffer objects in list untill they have been unused for many
draw operations. Current limit of having 100 flushes is just guess for
good performance/memory trade off.

Moving WARN_ONCE macro to common context because it is used in multiple drivers.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
16 files changed:
src/mesa/drivers/dri/r200/r200_state.c
src/mesa/drivers/dri/r200/r200_swtcl.c
src/mesa/drivers/dri/r300/r300_context.h
src/mesa/drivers/dri/r300/r300_draw.c
src/mesa/drivers/dri/r300/r300_swtcl.c
src/mesa/drivers/dri/r300/r300_texstate.c
src/mesa/drivers/dri/r600/r600_context.h
src/mesa/drivers/dri/r600/r600_texstate.c
src/mesa/drivers/dri/r600/r700_ioctl.c
src/mesa/drivers/dri/radeon/radeon_common.c
src/mesa/drivers/dri/radeon/radeon_common_context.c
src/mesa/drivers/dri/radeon/radeon_common_context.h
src/mesa/drivers/dri/radeon/radeon_dma.c
src/mesa/drivers/dri/radeon/radeon_dma.h
src/mesa/drivers/dri/radeon/radeon_state.c
src/mesa/drivers/dri/radeon/radeon_swtcl.c