diff --git a/src/amd/vulkan/radv_image_view.c b/src/amd/vulkan/radv_image_view.c index aa556ccb14e..85315f21530 100644 --- a/src/amd/vulkan/radv_image_view.c +++ b/src/amd/vulkan/radv_image_view.c @@ -506,7 +506,8 @@ radv_image_view_init(struct radv_image_view *iview, struct radv_device *device, .depth = image->vk.extent.depth, }; } else { - iview->extent = iview->vk.extent; + iview->extent = + vk_image_mip_level_extent(&image->vk, iview->vk.base_mip_level); } if (iview->vk.format != image->planes[iview->plane_id].format) { diff --git a/src/vulkan/runtime/vk_image.c b/src/vulkan/runtime/vk_image.c index fca763c9ae9..8dfece7e909 100644 --- a/src/vulkan/runtime/vk_image.c +++ b/src/vulkan/runtime/vk_image.c @@ -543,7 +543,7 @@ vk_image_view_init(struct vk_device *device, if (vk_format_is_compressed(image->format) && !vk_format_is_compressed(image_view->format)) { const struct util_format_description *fmt = - vk_format_description(image_view->format); + vk_format_description(image->format); /* Non-compressed view of compressed image only works for single MIP * views.