From 162c66258511a40f86187d271cb842b82dd39912 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 27 Jan 2016 12:37:15 -0800 Subject: [PATCH] anv/image: Use the entire image height for compressed meta blits --- src/vulkan/anv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_image.c b/src/vulkan/anv_image.c index 889a9e8..febfaa4 100644 --- a/src/vulkan/anv_image.c +++ b/src/vulkan/anv_image.c @@ -548,7 +548,7 @@ anv_image_view_init(struct anv_image_view *iview, iview->level_0_extent.depth = anv_minify(image->extent.depth, range->baseMipLevel); iview->level_0_extent.depth = DIV_ROUND_UP(iview->level_0_extent.depth, isl_layout->bd); - iview->level_0_extent.height = isl_surf_get_array_pitch_el_rows(&surface->isl); + iview->level_0_extent.height = isl_surf_get_array_pitch_el_rows(&surface->isl) * image->array_size; iview->level_0_extent.width = isl_surf_get_row_pitch_el(&surface->isl); mCreateInfo.subresourceRange.baseMipLevel = 0; mCreateInfo.subresourceRange.baseArrayLayer = 0; -- 2.7.4