softpipe: optimized path for simple mipmap sampling
authorKeith Whitwell <keithw@vmware.com>
Thu, 20 Aug 2009 10:25:20 +0000 (11:25 +0100)
committerKeith Whitwell <keithw@vmware.com>
Thu, 20 Aug 2009 10:25:20 +0000 (11:25 +0100)
commit4f409da3456070946eda2d8ff5153b3b4306bb46
treef5e5b87c5fab30c2779ff8d9f3d482ff98579211
parentd12bae9368e0c44a9943d9b37ab848ea307d70c7
softpipe: optimized path for simple mipmap sampling

linear-mip-linear-repeat-POT sampling faspath, provides a very nice
speedup to apps that do this common type of texturing.

Test case: demos/terrain, turn fog off, turn texturing on.
Without patch: 12 fps
With patch: 20 fps.
src/gallium/drivers/softpipe/sp_tex_sample.c