llvmpipe: implement max scene size
authorBrian Paul <brianp@vmware.com>
Tue, 27 Apr 2010 17:44:33 +0000 (11:44 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 27 Apr 2010 17:44:36 +0000 (11:44 -0600)
commitbb527c0af6c53b335330da1063979f5ac3a19174
tree5eaa65afd5c1d272fae325d5a00d397e8c58de6c
parent1db3a55b9c59093f7bf4df39579287eeb0cf0a2b
llvmpipe: implement max scene size

When the size of the scene (binned data plus referenced resources/textures)
exceeds LP_MAX_SCENE_SIZE flush/render the scene.  This could be improved
in various ways but is a good start.

Fixes piglit streaming-texture-leak test.
src/gallium/drivers/llvmpipe/lp_limits.h
src/gallium/drivers/llvmpipe/lp_scene.c
src/gallium/drivers/llvmpipe/lp_scene.h
src/gallium/drivers/llvmpipe/lp_setup.c