softpipe: fix shadow 2d texture array sampling
authorDave Airlie <airlied@redhat.com>
Mon, 19 Dec 2011 10:34:20 +0000 (10:34 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Dec 2011 20:44:47 +0000 (20:44 +0000)
commit97b778efe7949977b4e857413807d1efcad346aa
tree61fa94e3114b68fbcf931d76d9f4fbbbb67bee2a
parentf4ab1783b390cd8ff7f4b1e7ba9fc15893e2d69c
softpipe: fix shadow 2d texture array sampling

The 4th texcoord is used in this case for the comparison.

This fixes piglit glsl-fs-shadow2DArray* on softpipe.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/drivers/softpipe/sp_tex_sample.c