i965: Don't depth test the fake depthbuffer when one isn't present.
authorEric Anholt <eric@anholt.net>
Wed, 23 Nov 2011 00:26:55 +0000 (16:26 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 29 Nov 2011 19:18:23 +0000 (11:18 -0800)
commit09e67706e9a74600e16fe012ecfd192b0d31960a
treebe6c2043ab84b4d6a13c157b2eb7ce9ac3ecca31
parente6c314f7d2ed99714376fec6b7509a55535fa3ff
i965: Don't depth test the fake depthbuffer when one isn't present.

For the non-separate-stencil-only case, we've been using a NULL
surface for depth, so we didn't have to care.  However, to support
separate stencil with no depthbuffer, we have to make the depth
surface non-NULL or the stencil test always fails thanks to separate
stencil inheriting the surface type of depth.

Fixes hiz-depth-stencil-test-d0-s8.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/gen6_depthstencil.c