From: Chad Versace Date: Mon, 25 Jan 2016 20:23:57 +0000 (-0800) Subject: isl: Fix row pitch for compressed formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea44d31528219eb97ce08706d2a6fb4da32636be;p=mesa.git isl: Fix row pitch for compressed formats When calculating row pitch, the row's width in samples must be divided by the format's block width. The commit below accidentally removed the division. commit eea2d4d05987b4f8ad90a1588267f9495f1e9e99 Author: Chad Versace Date: Tue Jan 5 14:28:28 2016 -0800 Subject: isl: Don't align phys_slice0_sa.width twice --- diff --git a/src/isl/isl.c b/src/isl/isl.c index 357d0ea69c1..ec66f97b779 100644 --- a/src/isl/isl.c +++ b/src/isl/isl.c @@ -895,7 +895,7 @@ isl_calc_row_pitch(const struct isl_device *dev, * being used to determine whether additional pages need to be defined. */ assert(phys_slice0_sa->w % fmtl->bw == 0); - row_pitch = MAX(row_pitch, fmtl->bs * phys_slice0_sa->w); + row_pitch = MAX(row_pitch, fmtl->bs * (phys_slice0_sa->w / fmtl->bw)); switch (tile_info->tiling) { case ISL_TILING_LINEAR: