isl: Don't align phys_slice0_sa.width twice

It's already aligned to the format's block width. Don't align it again
in isl_calc_row_pitch().
This commit is contained in:
Chad Versace 2016-01-05 14:28:28 -08:00
parent 39d043f94a
commit eea2d4d059
1 changed files with 2 additions and 2 deletions

View File

@ -821,8 +821,8 @@ isl_calc_row_pitch(const struct isl_device *dev,
* texels, and must be converted to bytes based on the surface format
* being used to determine whether additional pages need to be defined.
*/
row_pitch = MAX(row_pitch,
fmtl->bs * isl_align_div_npot(phys_slice0_sa->w, fmtl->bw));
assert(phys_slice0_sa->w % fmtl->bw == 0);
row_pitch = MAX(row_pitch, fmtl->bs * phys_slice0_sa->w);
switch (tile_info->tiling) {
case ISL_TILING_LINEAR: