summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen7_misc_state.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-12-14 17:16:07 -0800
committerEric Anholt <eric@anholt.net>2011-12-19 13:20:11 -0800
commitfdf18b323156098ba5fb2881aa1a7888d2e0667f (patch)
treed8a653a0bda12564a25c32e93741cf495f863249 /src/mesa/drivers/dri/i965/gen7_misc_state.c
parent7978fb4d9fd9c3e07aa1c09eba5571ec8a437d9c (diff)
downloadexternal_mesa3d-fdf18b323156098ba5fb2881aa1a7888d2e0667f.zip
external_mesa3d-fdf18b323156098ba5fb2881aa1a7888d2e0667f.tar.gz
external_mesa3d-fdf18b323156098ba5fb2881aa1a7888d2e0667f.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_misc_state.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_misc_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c
index 3946cb3..89a4e71 100644
--- a/src/mesa/drivers/dri/i965/gen7_misc_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c
@@ -53,6 +53,7 @@ static void emit_depthbuffer(struct brw_context *brw)
/* Gen7 doesn't support packed depth/stencil */
assert(stencil_mt == NULL || depth_mt != stencil_mt);
+ assert(!depth_mt || !_mesa_is_format_packed_depth_stencil(depth_mt->format));
intel_emit_depth_stall_flushes(intel);