radeon/r200/r300: fix up the whole buffer space checking.
authorDave Airlie <airlied@redhat.com>
Thu, 2 Apr 2009 08:58:49 +0000 (18:58 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Apr 2009 08:58:49 +0000 (18:58 +1000)
commit05304d41f2d9ab7a66a8b976580c156b7b93a9d3
treee6132b7fb98ce55039ae14f539527afeb542af38
parent41702160090a4c1325afc07c56682f3e1c4fcaf0
radeon/r200/r300: fix up the whole buffer space checking.

This fixes up the buffer validation scheme, so that we keep a list
of buffers to validate so cmdbuf flushes during a pipeline get
all the buffers revalidated on the next emit.

This also fixes radeonFlush to not flush unless we have something
useful to send to the GPU, like a DMA buffer or something not state
src/mesa/drivers/dri/r200/r200_state.c
src/mesa/drivers/dri/r300/r300_emit.c
src/mesa/drivers/dri/r300/r300_texstate.c
src/mesa/drivers/dri/radeon/radeon_common.c
src/mesa/drivers/dri/radeon/radeon_common.h
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_state.c
src/mesa/drivers/dri/radeon/radeon_state.h