mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
i965/gen4: Set depth offset when there is stencil attachment only
Current version fails to set depthstencil.depth_offset when there
is only stencil attachment (it does set the intra tile offsets
though). Fixes piglits:
g45,g965,ilk: depthstencil-render-miplevels 1024 s=z24_s8
g45,ilk: depthstencil-render-miplevels 273 s=z24_s8
CC: mesa-stable@lists.freedesktop.org
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
(cherry picked from commit 6967285981)
This commit is contained in:
parent
7872aae4b7
commit
604304d528
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue