summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_quad_earlyz.c
AgeCommit message (Collapse)Author
2007-11-19optimize earlyz_quad(), add comments, remove unneeded #includesBrian
2007-11-18Implement early depth test.Michal Krol
Early depth test is enabled when depth test is enabled and alpha test is disabled and fragment shader does not write depth. The early-z is implemented by moving the depth test stage just before the fragment shader stage and prepending it with an earlyz stage, introduced with this commit. The earlyz stage prepares the quad->outputs.depth for the following depth test stage by interpolating Z position, just as the fragment shader would do.