softpipe: add special cases for all Z compare modes for 16-bit Z buffer
authorBrian Paul <brianp@vmware.com>
Tue, 23 Mar 2010 15:00:19 +0000 (09:00 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 23 Mar 2010 15:00:19 +0000 (09:00 -0600)
commitfc1ba0423ac31cff14346dbc888255fb5fd7d1b2
treefd446e39b06d2142fff8a381368fda7be940f592
parent4ceeb1307a018f426784620d3376f9f1ea07e53b
softpipe: add special cases for all Z compare modes for 16-bit Z buffer

We had fast paths for PIPE_FUNC_LESS and LEQUAL before.  To satisfy
OpenGL invariance rules, all depth compare modes should produce the
same fragment Z values.

Fixes progs/demos/singlebuffer.c
src/gallium/drivers/softpipe/sp_quad_depth_test.c
src/gallium/drivers/softpipe/sp_quad_depth_test_tmp.h [new file with mode: 0644]