summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_limits.h
AgeCommit message (Collapse)Author
2010-09-18llvmpipe: use llvm for attribute interpolant calculationKeith Whitwell
Basically no change relative to hard-coded version, but this will be useful for other changes later.
2010-06-18llvmpipe: limit the number of fragment shader variants kept aroundRoland Scheidegger
llvmpipe can create a large number of shader variants for a single shader (which are quite big), and they were only ever deleted if the shader itself was deleted. This is especially apparent in things like glean blendFunc where a new variant is created for every different subtest, chewing up all memory. This change limits the numbers of fragment shader variants (for all shaders) which are kept around to a fixed number. If that would be exceeded a fixed portion of the cached variants is deleted (since without tracking the used variants this involves flushing we don't want to delete only one). Always the least recently used variants (from all shaders together) are deleted. For now this is all per-context. Both the number of how many variants are cached (1024) as well as how many will be deleted at once (1/4 of the cache size) are just rough guesses and subject to further optimization.
2010-04-27llvmpipe: implement max scene sizeBrian Paul
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.
2010-04-24llvmpipe: Move the determination of the number of threads to the screen.José Fonseca
2010-04-23llvmpipe: increase max 2D texture / surface size to 4K x 4KBrian Paul
2010-04-23llvmpipe: rename MAXWIDTH, MAXHEIGHTBrian Paul
2010-04-23llvmpipe: rename lp_tile_size.h to lp_limits.hBrian Paul
Collect the various driver limits in one place since.