aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_misc_state.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2016-05-24 13:06:36 -0700
committerMatt Turner <[email protected]>2016-05-25 12:44:34 -0700
commit83c6749ddb9bb767e754aa886cdc872af0557898 (patch)
tree44e86d021ee9d441a8c425f272c83bbe6aa761fc /src/mesa/drivers/dri/i965/brw_misc_state.c
parent4a5e92ac705e1dcc4abf53f67300217e95e755da (diff)
i965: Assert that a depth_mt exists when using HiZ.
Reviewed-by: Anuj Phogat <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_misc_state.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_misc_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c
index 5510d2c36f4..690c2f65fd9 100644
--- a/src/mesa/drivers/dri/i965/brw_misc_state.c
+++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
@@ -646,6 +646,7 @@ brw_emit_depth_stencil_hiz(struct brw_context *brw,
/* Emit hiz buffer. */
if (hiz) {
+ assert(depth_mt);
struct intel_mipmap_tree *hiz_mt = depth_mt->hiz_buf->mt;
BEGIN_BATCH(3);
OUT_BATCH((_3DSTATE_HIER_DEPTH_BUFFER << 16) | (3 - 2));