summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/i965/brw_misc_state.c6
1 files changed, 6 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 4693f778b5b..61a0c4cb5be 100644
--- a/src/mesa/drivers/dri/i965/brw_misc_state.c
+++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
@@ -457,6 +457,12 @@ brw_workaround_depthstencil_alignment(struct brw_context *brw,
brw->depthstencil.stencil_offset =
(stencil_draw_y & ~tile_mask_y) * stencil_mt->pitch +
(stencil_draw_x & ~tile_mask_x) * 64;
+ } else if (!depth_irb) {
+ brw->depthstencil.depth_offset =
+ intel_miptree_get_aligned_offset(
+ stencil_mt,
+ stencil_irb->draw_x & ~tile_mask_x,
+ stencil_irb->draw_y & ~tile_mask_y);
}
}
}