softpipe: consolidate vert/frag/geom sampler setting functions
authorBrian Paul <brianp@vmware.com>
Sat, 4 Aug 2012 14:46:41 +0000 (08:46 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 6 Aug 2012 14:33:17 +0000 (08:33 -0600)
commit1f34e1a6cbac4b96d07a3d6d01bc443d5282add4
tree78aad08aa9760e22ddbe702cabbcadfc9e82681b
parentd6c3e6d8f34fc39dcbe9395c3a5953af726443f1
softpipe: consolidate vert/frag/geom sampler setting functions

The functions for setting samplers and sampler views for vertex,
fragment and geometry shaders were nearly identical.  Now they
use shared code.

In the future, if the pipe_context functions for setting samplers
and sampler views for vert/frag/geom/compute are combined, this
will make updating the softpipe driver a snap.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/softpipe/sp_state_sampler.c