ilo: fix and enable fast depth clear

Graphics / Mesa 3D Graphics Library / Mesa - Chia-I Wu [gmail.com] - 22 February 2014 08:45 UTC

Use tex->bo_format instead of zs->format in ilo_blitter_rectlist_clear_zs() because the latter may be combined depth/stencil format. hiz_can_clear_zs() is no-op for GEN7+, but move the GEN check so that the assertions are tested.

Finally, call the fast depth clear function from ilo_clear().

d5cbd73 ilo: fix and enable fast depth clear
src/gallium/drivers/ilo/ilo_blit.c | 9 ++++++
src/gallium/drivers/ilo/ilo_blitter_rectlist.c | 38 ++++++++++++++++++------
2 files changed, 38 insertions(+), 9 deletions(-)

Upstream: cgit.freedesktop.org


  • Share