draw: limit the number of vertex shader variants kept around
authorZack Rusin <zackr@vmware.com>
Fri, 25 Jun 2010 23:31:09 +0000 (19:31 -0400)
committerZack Rusin <zackr@vmware.com>
Fri, 25 Jun 2010 23:33:27 +0000 (19:33 -0400)
commit8ebfcf31eb905b7d47e520c04420620ae21bdf4e
treed1babc0a7da5addcfea47fbb0bd2dcbf3ad0687d
parent5cf1921e6d7ba36e6e882094d3280e3cd363df61
draw: limit the number of vertex shader variants kept around

we used to create and cache unltimited number of variant, this
change limits the number of variants kept around to a fixed number.
the change is based on a similar patch by Roland for llvmpipe fragment
shaders.
src/gallium/auxiliary/SConscript
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/draw/draw_llvm.h
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
src/gallium/auxiliary/draw/draw_vs.c
src/gallium/auxiliary/draw/draw_vs.h
src/gallium/auxiliary/draw/draw_vs_llvm.c [new file with mode: 0644]