Commit 8b00d3d6 authored by Lionel Landwerlin's avatar Lionel Landwerlin

anv: use image aspects rather than computed ones

This shouldn't make any difference but I feel uneasy to use the
expanded aspects that do not represent the image in its entirety. If
we ever change the implementation of the anv_image_aspect_to_plane()
helper, this is safer.
Signed-off-by: Lionel Landwerlin's avatarLionel Landwerlin <>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <>
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <>
parent 465de47b
......@@ -1321,7 +1321,7 @@ anv_CreateImageView(VkDevice _device,
uint32_t iaspect_bit, vplane = 0;
anv_foreach_image_aspect_bit(iaspect_bit, image, expanded_aspects) {
uint32_t iplane =
anv_image_aspect_to_plane(expanded_aspects, 1UL << iaspect_bit);
anv_image_aspect_to_plane(image->aspects, 1UL << iaspect_bit);
VkImageAspectFlags vplane_aspect =
anv_plane_to_aspect(iview->aspect_mask, vplane);
struct anv_format_plane format =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment