anv/image: Add support for the new depth/stencil layouts
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 28 Apr 2017 13:10:29 +0000 (06:10 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Sep 2017 00:21:06 +0000 (17:21 -0700)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_image.c

index 559e50da9a20b8169cf83f5560f3b33d0c5effbb..bebc1c0c433d15cb44cca882632592b4a4d9f762 100644 (file)
@@ -639,6 +639,7 @@ anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
       assert(!color_aspect);
       /* Fall-through */
    case VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL:
+   case VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL_KHR:
       if (anv_can_sample_with_hiz(devinfo, aspects, image->samples))
          return ISL_AUX_USAGE_HIZ;
       else
@@ -671,6 +672,7 @@ anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
       unreachable("Color images are not yet supported.");
 
    case VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL:
+   case VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL_KHR:
       assert(!color_aspect);
       return ISL_AUX_USAGE_HIZ;