softpipe: do texture swizzle during texture sampling
authorBrian Paul <brianp@vmware.com>
Tue, 14 Dec 2010 20:01:00 +0000 (13:01 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 14 Dec 2010 20:01:03 +0000 (13:01 -0700)
commitc62bb90d6a864468fe1a717aebb9c1a9c43bf3c8
tree22fef0c50d5e49f8dcf379b224ecf2c023c99492
parentbe2aa81f5f8f44be8c9c8854098d29635352c4f8
softpipe: do texture swizzle during texture sampling

Instead of when we read texture tiles.  Now swizzling happens after
the shadow depth compare step.  This fixes the piglit glsl-fs-shadow2d*
tests (except for proj+bias because of a GLSL bug).
src/gallium/drivers/softpipe/sp_state_sampler.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_tex_sample.h
src/gallium/drivers/softpipe/sp_tex_tile_cache.c