diff options
author | Chad Versace <chad.versace@intel.com> | 2015-12-14 12:31:55 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@intel.com> | 2015-12-15 08:46:09 -0800 |
commit | 53504b884e58af6bcf92e3fd258c7d9d3332c1fc (patch) | |
tree | cd35f1c3ca515ee9f177554ba68e2000653ee030 | |
parent | f7e36f9f66248e94cc4247e2459d75f6cd32bc46 (diff) | |
download | external_mesa3d-53504b884e58af6bcf92e3fd258c7d9d3332c1fc.zip external_mesa3d-53504b884e58af6bcf92e3fd258c7d9d3332c1fc.tar.gz external_mesa3d-53504b884e58af6bcf92e3fd258c7d9d3332c1fc.tar.bz2 |
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.
-rw-r--r-- | src/isl/isl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/isl/isl.c b/src/isl/isl.c index d858ea7..333a517 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; } |