ir_to_mesa: Handle shadow compare w/projection and LOD bias correctly
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 4 Apr 2011 20:35:26 +0000 (13:35 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 5 Apr 2011 17:57:27 +0000 (10:57 -0700)
commit9996a86085edb2bdbcb165d985203ee8ce6a9b22
tree337855d8e7c85525d53dba235493cf4f77f9da9d
parent4af3fe857dc07923af8786b434dee32d493b577e
ir_to_mesa: Handle shadow compare w/projection and LOD bias correctly

The code would previously handle the projection, then swizzle the
shadow comparitor into place.  However, when the projection is done
"by hand," as in the TXB case, the unprojected shadow comparitor would
over-write the projected shadow comparitor.

Shadow comparison with projection and LOD is an extremely rare case in
real application code, so it shouldn't matter that we don't handle
that case with the greatest efficiency.

NOTE: This is a candidate for the stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=32395
src/mesa/program/ir_to_mesa.cpp