softpipe: per-unit sampler varients
authorBrian Paul <brianp@vmware.com>
Fri, 21 Aug 2009 18:11:44 +0000 (12:11 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 21 Aug 2009 18:44:04 +0000 (12:44 -0600)
commita29447c33d44b3427e0c40a761067c0cc6e71c39
treed9ffe18d8d6797787aa39d444b54dc9e6af60ad7
parent87ec83afd58536c31bf02c307f1d5488abc84861
softpipe: per-unit sampler varients

Can't share sampler varients across multiple tex units because the texture
pointer is in the sampler varient.  That prevents different textures per unit.

Fixes progs/demos/multiarb, progs/glsl/samplers, etc.
src/gallium/drivers/softpipe/sp_state_sampler.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_tex_sample.h