mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
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:
parent
45ecfcd637
commit
ea44d31528
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue