[Mesa-dev] [PATCH 16/22] anv/image: Disable HiZ for storage images

Nanley Chery nanleychery at gmail.com
Thu Jan 12 01:55:02 UTC 2017


Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
---
 src/intel/vulkan/anv_image.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index f8a21c2982..7d5beeabbe 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -190,6 +190,12 @@ make_surface(const struct anv_device *dev,
           * input attachments.
           */
          anv_finishme("Implement HiZ for input attachments");
+      } else if (image->usage & VK_IMAGE_USAGE_STORAGE_BIT) {
+         /* Storage images must be in the VK_IMAGE_LAYOUT_GENERAL layout for
+          * load and store operations. For the same reasons as above, disable
+          * HiZ for now.
+          */
+         anv_finishme("Implement HiZ for storage images");
       } else if (!env_var_as_boolean("INTEL_VK_HIZ", dev->info.gen >= 8)) {
          anv_finishme("Implement gen7 HiZ");
       } else if (vk_info->mipLevels > 1) {
-- 
2.11.0



More information about the mesa-dev mailing list