<div dir="ltr"><div>I made minor comments on patches 3 and 6. With those fixed, the series is<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 13, 2017 at 3:28 PM, Chad Versace <span dir="ltr"><<a href="mailto:chadversary@chromium.org" target="_blank">chadversary@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Reviewed-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
Reviewed-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>><br>
---<br>
src/intel/isl/isl.c | 13 +++----------<br>
src/intel/isl/isl.h | 3 ---<br>
2 files changed, 3 insertions(+), 13 deletions(-)<br>
<br>
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c<br>
index 0e0eb35ef52..9ef078d654a 100644<br>
--- a/src/intel/isl/isl.c<br>
+++ b/src/intel/isl/isl.c<br>
@@ -1041,11 +1041,7 @@ isl_calc_linear_min_row_pitch(<wbr>const struct isl_device *dev,<br>
<br>
assert(phys_slice0_sa->w % fmtl->bw == 0);<br>
<br>
- uint32_t min_row_pitch = bs * (phys_slice0_sa->w / fmtl->bw);<br>
- min_row_pitch = MAX2(min_row_pitch, info->min_pitch);<br>
- min_row_pitch = isl_align_npot(min_row_pitch, alignment);<br>
-<br>
- return min_row_pitch;<br>
+ return isl_align_npot(bs * (phys_slice0_sa->w / fmtl->bw), alignment);<br>
}<br>
<br>
static uint32_t<br>
@@ -1066,11 +1062,8 @@ isl_calc_tiled_min_row_pitch(<wbr>const struct isl_device *dev,<br>
isl_align_div(total_w_el * tile_el_scale,<br>
tile_info->logical_extent_el.<wbr>width);<br>
<br>
- uint32_t min_row_pitch = total_w_tl * tile_info->phys_extent_B.<wbr>width;<br>
- min_row_pitch = MAX2(min_row_pitch, surf_info->min_pitch);<br>
- min_row_pitch = isl_align_npot(min_row_pitch, alignment);<br>
-<br>
- return min_row_pitch;<br>
+ assert(alignment == tile_info->phys_extent_B.<wbr>width);<br>
+ return total_w_tl * tile_info->phys_extent_B.<wbr>width;<br>
}<br>
<br>
static uint32_t<br>
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h<br>
index fb2bcfaec10..22069134ef8 100644<br>
--- a/src/intel/isl/isl.h<br>
+++ b/src/intel/isl/isl.h<br>
@@ -813,9 +813,6 @@ struct isl_surf_init_info {<br>
/** Lower bound for isl_surf::alignment, in bytes. */<br>
uint32_t min_alignment;<br>
<br>
- /** Lower bound for isl_surf::pitch, in bytes. */<br>
- uint32_t min_pitch;<br>
-<br>
/**<br>
* Exact value for isl_surf::row_pitch. Ignored if zero. isl_surf_init()<br>
* will fail if this is misaligned or out of bounds.<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.12.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>