anv/image: Disable HiZ for depth buffer arrays
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 5 Jan 2017 14:58:03 +0000 (06:58 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 12 Jan 2017 01:35:59 +0000 (17:35 -0800)
We currently don't perform clears or resolves on multiple array layers
with HiZ.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_image.c

index e60373a15136df2fac49e9ed6d356a75f6904f6d..f262d8a524011fa4e9e841df70d64cc185005dae 100644 (file)
@@ -186,6 +186,8 @@ make_surface(const struct anv_device *dev,
          anv_finishme("Implement gen7 HiZ");
       } else if (vk_info->mipLevels > 1) {
          anv_finishme("Test multi-LOD HiZ");
+      } else if (vk_info->arrayLayers > 1) {
+         anv_finishme("Implement multi-arrayLayer HiZ clears and resolves");
       } else if (dev->info.gen == 8 && vk_info->samples > 1) {
          anv_finishme("Test gen8 multisampled HiZ");
       } else {