llvmpipe: clean up shader pre/postamble, try to catch more early-z
authorKeith Whitwell <keithw@vmware.com>
Sat, 9 Oct 2010 10:28:00 +0000 (11:28 +0100)
committerKeith Whitwell <keithw@vmware.com>
Sat, 9 Oct 2010 10:44:45 +0000 (11:44 +0100)
commit5b7eb868fde98388d80601d8dea39e679828f42f
treec97e8a511ec7cf3bb6df50098b8cb22d2b3e5277
parentaa4cb5e2d8d48c7dcc9653c61a9e25494e3e7b2a
llvmpipe: clean up shader pre/postamble, try to catch more early-z

Specifically, can do early-depth-test even when alpahtest or
kill-pixel are active, providing we defer the actual z write until the
final mask is avaialable.

Improves demos/fire.c especially in the case where you get close to
the trees.
src/gallium/drivers/llvmpipe/lp_bld_depth.c
src/gallium/drivers/llvmpipe/lp_bld_depth.h
src/gallium/drivers/llvmpipe/lp_state_fs.c