[Mesa-dev] [PATCH 01/12] anv/image: Add support for the new depth/stencil layouts

Lionel Landwerlin lionel.g.landwerlin at intel.com
Tue Sep 19 14:41:38 UTC 2017


Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

On 15/09/17 17:01, Jason Ekstrand wrote:
> ---
>   src/intel/vulkan/anv_image.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
> index 492b341..63e507a 100644
> --- a/src/intel/vulkan/anv_image.c
> +++ b/src/intel/vulkan/anv_image.c
> @@ -581,6 +581,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
> @@ -613,6 +614,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;
>   




More information about the mesa-dev mailing list