anv: Fast clear depth/stencil surface in vkCmdClearAttachments

Instead of doing a slow depth clear, we can do depth fast clear in
vkClearAttachments.

Sascha Willems occlusionquery demo shows more than 2% perf boost with
this series.

On Felix's Tigerlake with the GPU at fixed frequency, this patch
improves performance of RoTR by +0.5%.

v2: (Nanley Chery)
- Clear stencil surface along with depth.
- Check for multilayer resources.
- Lookout for state.attachments.
- Fallback on slow clear for BDW and CHV if conditional rendering
  enabled.
- Keep flush in same function.

v3: (Nanley Chery)
- Return immediately after fast clearing.
- Remove unnecessary comment.

v4: (Nanley Chery)
- Add assertion for BLORP_BATCH_NO_EMIT_DEPTH_STENCIL.
- Remove unnecessary local variable.
- Add 3DSTATE_WM_HZ_OP comment.

v5: (Nanley Chery)
- Fix comments.
- Don't take fast depth clear path if BLORP_BATCH_PREDICATE_ENABLE set.
- Refactor code in can_hiz_clear_att.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
35 jobs for !6711 with hiz_clear in 12 seconds (queued for 3 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #8088461
sanity

00:00:12

 
  Container
manual #8088466
aarch64 manual
arm_build
manual #8088468
manual
arm_test-base
manual #8088470
windows shell 1809 mesa manual
windows_build_vs2019
manual #8088463
manual
x86_build-base
manual #8088465
manual
x86_test-base
 
  Container 2
created #8088485
android_build
created #8088490
arm64_test
created #8088491
armhf_test
created #8088480
i386_build
created #8088472
kernel+rootfs_amd64
created #8088474
aarch64
kernel+rootfs_arm64
created #8088476
aarch64
kernel+rootfs_armhf
created #8088481
ppc64el_build
created #8088483
s390x_build
created #8088478
x86_build
created #8088486
x86_test-gl
created #8088488
x86_test-vk
 
  Meson X86 64
created #8088502
meson-clang
created #8088504
meson-clover
created #8088497
meson-clover-testing
created #8088498
gstreamer
meson-gallium
created #8088500
meson-release
created #8088493
meson-testing
created #8088495
meson-testing-asan
created #8088505
meson-vulkan
 
  Build Misc
created #8088507
meson-android
created #8088511
aarch64
meson-arm64
created #8088513
aarch64
meson-arm64-asan
created #8088515
aarch64
meson-arm64-build-test
created #8088509
aarch64
meson-armhf
created #8088517
meson-i386
created #8088524
meson-mingw32-x86_64
created #8088522
kvm
meson-ppc64el
created #8088519
kvm
meson-s390x