From a76fd8b08cf0274a6d8bfe97f05b96014f2a9e98 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 24 Oct 2019 14:21:02 -0700 Subject: 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: --- src/intel/vulkan/anv_private.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3