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 eea2d4d059
    Author: Chad Versace <chad.versace@intel.com>
    Date:   Tue Jan 5 14:28:28 2016 -0800
    Subject: isl: Don't align phys_slice0_sa.width twice
This commit is contained in:
Chad Versace 2016-01-25 12:23:57 -08:00 committed by Jason Ekstrand
parent 45ecfcd637
commit ea44d31528

View file

@ -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: