From 53504b884e58af6bcf92e3fd258c7d9d3332c1fc Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 14 Dec 2015 12:31:55 -0800 Subject: [PATCH] isl: Fix calculation of array pitch for layout GEN4_2D The height of the miptree's right half was not large enough. Found by `make check` in test_isl_surf_get_offset, which is added in the next commit. --- src/isl/isl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/isl/isl.c b/src/isl/isl.c index d858ea74745..333a517f274 100644 --- a/src/isl/isl.c +++ b/src/isl/isl.c @@ -570,6 +570,7 @@ isl_calc_phys_slice0_extent_sa_gen4_2d( slice_left_h += h; } else if (l == 2) { slice_bottom_w += w; + slice_right_h += h; } else { slice_right_h += h; } -- 2.30.2