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