gallivm: do texture swizzle after shadow compare
authorBrian Paul <brianp@vmware.com>
Tue, 14 Dec 2010 17:38:15 +0000 (10:38 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 14 Dec 2010 19:17:10 +0000 (12:17 -0700)
commitdfbc20593ec89ef5ddcb0dba3b05ea95e296861e
tree99518bdd2cf2f2959d21ba95bee8b1c33d63bbd0
parent68c41a25b4adf77886cc915d47af5e01723142f8
gallivm: do texture swizzle after shadow compare

We need to swizzle after the shadow comparison so that the GL_DEPTH_MODE
functionality is handled properly.

This fixes all the piglit glsl-fs-shadow2d*.shader_test cases, except
for glsl-fs-shadow2dproj-bias.shader_test which fails because of a
bug in the GLSL compiler (fd.o 32395).
src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c