From: Jason Ekstrand Date: Fri, 28 Apr 2017 13:10:29 +0000 (-0700) Subject: anv/image: Add support for the new depth/stencil layouts X-Git-Tag: upstream/18.1.0~5864 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28911156711c661d42807aaaf89e33eeba53537e;p=platform%2Fupstream%2Fmesa.git anv/image: Add support for the new depth/stencil layouts Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 559e50d..bebc1c0 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -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;