r300: Predict emit size for next rendering operation.
authorPauli Nieminen <suokkos@gmail.com>
Fri, 21 Aug 2009 15:55:34 +0000 (18:55 +0300)
committerPauli Nieminen <suokkos@gmail.com>
Fri, 21 Aug 2009 16:12:31 +0000 (19:12 +0300)
commitd6b5464aaa93585376610ce8cace66ea3798723d
tree5b1352d7f6c2ed74e62a63376914b808fed5b574
parent12fe319c53187e9a316f8c26441040a84ae4efca
r300: Predict emit size for next rendering operation.

We do flush for cmd buffer in case there isn't enough space left for whole
rendering operation. This protects dma regions from getting released in middle
of state emit.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
src/mesa/drivers/dri/r300/r300_cmdbuf.h
src/mesa/drivers/dri/r300/r300_draw.c
src/mesa/drivers/dri/radeon/radeon_cmdbuf.h
src/mesa/drivers/dri/radeon/radeon_common.c