r300g: refrain from using immediate mode if it causes slowdown
authorMarek Olšák <maraeo@gmail.com>
Sat, 13 Mar 2010 05:07:33 +0000 (06:07 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 13 Mar 2010 17:23:27 +0000 (18:23 +0100)
commitbcec6d851ce6ec2d948f03e5a1adfb5871e4e627
tree9c989e991db8886d7c39e982be108d837ef45f33
parente31bca139f720396d1a1639b46d37aee4fd9736e
r300g: refrain from using immediate mode if it causes slowdown

E.g. when mapping buffers could flush CS or cause waiting
for a busy buffer.

The side effect of this is it also fixes progs/demos/arbocclude however
a separate fix should be proposed to address this issue in other cases
it might occur.
src/gallium/drivers/r300/r300_render.c
src/gallium/winsys/drm/radeon/core/radeon_buffer.c
src/gallium/winsys/drm/radeon/core/radeon_winsys.h