diff options
author | Chad Versace <[email protected]> | 2017-03-10 13:58:13 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2017-03-28 09:44:44 -0700 |
commit | d1032a047b5f8ef29a1175192436f4a2291e6ff6 (patch) | |
tree | 98129c454ed6284c3747b87f1ac42ba1f2c57c6f /src/intel/isl/isl.c | |
parent | 6cbc13d94c40f875926b8fd2129852759f314d14 (diff) |
isl: Drop unused isl_surf_init_info::min_pitch
Reviewed-by: Nanley Chery <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.c')
-rw-r--r-- | src/intel/isl/isl.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 98a1152c282..c7072d09025 100644 --- a/src/intel/isl/isl.c +++ b/src/intel/isl/isl.c @@ -1043,11 +1043,7 @@ isl_calc_linear_min_row_pitch(const struct isl_device *dev, assert(phys_slice0_sa->w % fmtl->bw == 0); - uint32_t min_row_pitch = bs * (phys_slice0_sa->w / fmtl->bw); - min_row_pitch = MAX2(min_row_pitch, info->min_pitch); - min_row_pitch = isl_align_npot(min_row_pitch, alignment); - - return min_row_pitch; + return isl_align_npot(bs * (phys_slice0_sa->w / fmtl->bw), alignment); } static uint32_t @@ -1068,11 +1064,8 @@ isl_calc_tiled_min_row_pitch(const struct isl_device *dev, isl_align_div(total_w_el * tile_el_scale, tile_info->logical_extent_el.width); - uint32_t min_row_pitch = total_w_tl * tile_info->phys_extent_B.width; - min_row_pitch = MAX2(min_row_pitch, surf_info->min_pitch); - min_row_pitch = isl_align_npot(min_row_pitch, alignment); - - return min_row_pitch; + assert(alignment == tile_info->phys_extent_B.width); + return total_w_tl * tile_info->phys_extent_B.width; } static uint32_t |