llvmpipe: Code generate the texture sampling inside the shader.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 7 Sep 2009 13:52:39 +0000 (14:52 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 7 Sep 2009 14:02:08 +0000 (15:02 +0100)
commite4c76c02f77ed6e86537b546f4200f8f8132d114
tree85ef1812f25eedbfffaeb63096e3046ee1ac349a
parentde8376e2f22a59a0bc18bb7ddab88ee3153678b8
llvmpipe: Code generate the texture sampling inside the shader.

Finally a substantial performance improvement: framerates of apps using
texturing tripled, and furthermore, enabling/disabling texturing only
affects around 15% of the framerate, which means the bottleneck is now
somewhere else.

Generated texture sampling code is not complete though -- we always
sample from the base level -- so final figures will be different.
src/gallium/drivers/llvmpipe/Makefile
src/gallium/drivers/llvmpipe/SConscript
src/gallium/drivers/llvmpipe/lp_jit.c
src/gallium/drivers/llvmpipe/lp_jit.h
src/gallium/drivers/llvmpipe/lp_state.h
src/gallium/drivers/llvmpipe/lp_state_derived.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/llvmpipe/lp_state_sampler.c
src/gallium/drivers/llvmpipe/lp_tex_sample.h
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c [moved from src/gallium/drivers/llvmpipe/lp_tex_sample.c with 100% similarity]
src/gallium/drivers/llvmpipe/lp_tex_sample_llvm.c [new file with mode: 0644]