i965: fix depth test on sandybridge
authorZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 31 Aug 2010 01:54:44 +0000 (09:54 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 31 Aug 2010 01:58:18 +0000 (09:58 +0800)
commit24ff42e7d56ac489caeca6b5ffcc3091cc8194b5
tree67bdde14f87fb7aa7e2692ef219d184f456aac9e
parentbe7816f2b7f0b064a47fb3f101477ad5dba74017
i965: fix depth test on sandybridge

This includes several corrections for fixing depth test on sandybridge.
Fix wrong bits definition in depth stencil state. Fix wrong order of
state buffer offset in 3DSTATE_CC_STATE_POINTERS command. Correctly use
buffer width parameter in depth buffer setting.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_structs.h
src/mesa/drivers/dri/i965/gen6_cc.c