From: Chad Versace Date: Thu, 24 Oct 2019 21:21:02 +0000 (-0700) Subject: anv: Clarify behavior of anv_image_aspect_to_plane() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a76fd8b08cf0274a6d8bfe97f05b96014f2a9e98;p=mesa.git anv: Clarify behavior of anv_image_aspect_to_plane() It returns the aspect's _format_ plane, not its _memory_ plane (using the vocabulary of VK_EXT_image_drm_format_modifier). Tested-by: Marge Bot Part-of: --- diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 828d0f0d954..665e8cf54f4 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -3293,6 +3293,12 @@ struct anv_format { bool can_ycbcr; }; +/** + * Return the aspect's _format_ plane, not its _memory_ plane (using the + * vocabulary of VK_EXT_image_drm_format_modifier). As a consequence, \a + * aspect_mask may contain VK_IMAGE_ASPECT_PLANE_*, but must not contain + * VK_IMAGE_ASPECT_MEMORY_PLANE_* . + */ static inline uint32_t anv_image_aspect_to_plane(VkImageAspectFlags image_aspects, VkImageAspectFlags aspect_mask)