OSDN Git Service

isl: Fix calculation of array pitch for layout GEN4_2D
authorChad Versace <chad.versace@intel.com>
Mon, 14 Dec 2015 20:31:55 +0000 (12:31 -0800)
committerChad Versace <chad.versace@intel.com>
Tue, 15 Dec 2015 16:46:09 +0000 (08:46 -0800)
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

index d858ea7..333a517 100644 (file)
@@ -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;
       }