i965: Properly demote the depth mt format for fake packed depth/stencil.
authorEric Anholt <eric@anholt.net>
Thu, 15 Dec 2011 01:16:07 +0000 (17:16 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 19 Dec 2011 21:20:11 +0000 (13:20 -0800)
commitfdf18b323156098ba5fb2881aa1a7888d2e0667f
treed8a653a0bda12564a25c32e93741cf495f863249
parent7978fb4d9fd9c3e07aa1c09eba5571ec8a437d9c
i965: Properly demote the depth mt format for fake packed depth/stencil.

gen7 only supports the non-packed formats, even if you associate a
real separate stencil buffer -- otherwise it's as if the depth test
always fails.

This requires a little bit of care in the match_texture_image case,
since the miptree format no longer matches the texture image format.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen7_misc_state.c
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h