aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2019-10-24 14:21:02 -0700
committerMarge Bot <[email protected]>2020-02-12 21:01:45 +0000
commita76fd8b08cf0274a6d8bfe97f05b96014f2a9e98 (patch)
tree3d3e54e57192285a5fc4f25751d98274338a6a25
parentda2b0c6c19b080a1e4d91d3b2248dd974483c9fb (diff)
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 <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3796> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3796>
-rw-r--r--src/intel/vulkan/anv_private.h6
1 files changed, 6 insertions, 0 deletions
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)