anv/image: Use the entire image height for compressed meta blits
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Jan 2016 20:37:15 +0000 (12:37 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Jan 2016 23:12:42 +0000 (15:12 -0800)
src/vulkan/anv_image.c

index 889a9e87d79282fa7970fa1ffd5414a816033d33..febfaa425390c94253c5ae7a9a44b75ae7d49bf9 100644 (file)
@@ -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;