From ea44d31528219eb97ce08706d2a6fb4da32636be Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 25 Jan 2016 12:23:57 -0800 Subject: [PATCH] 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 --- src/isl/isl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2