<div dir="ltr">why do we sped two patches refactoring/renaming this field just so we can delete it?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 6, 2017 at 10:12 AM, 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">---<br>
 src/intel/isl/isl.c | 12 ++----------<br>
 src/intel/isl/isl.h |  3 ---<br>
 2 files changed, 2 insertions(+), 13 deletions(-)<br>
<br>
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c<br>
index b3ac305b81b..ec8424cd48b 100644<br>
--- a/src/intel/isl/isl.c<br>
+++ b/src/intel/isl/isl.c<br>
@@ -1008,8 +1008,6 @@ isl_calc_linear_row_pitch(<wbr>const struct isl_device *dev,<br>
    /* Any override of row_pitch should happen earlier. */<br>
    assert(info->row_pitch == 0);<br>
<br>
-   uint32_t row_pitch = info->min_row_pitch;<br>
-<br>
    /* First, align the surface to a cache line boundary, as the PRM explains<br>
     * below.<br>
     *<br>
@@ -1056,7 +1054,7 @@ isl_calc_linear_row_pitch(<wbr>const struct isl_device *dev,<br>
     */<br>
    assert(phys_slice0_sa->w % fmtl->bw == 0);<br>
    const uint32_t bs = fmtl->bpb / 8;<br>
-   row_pitch = MAX(row_pitch, bs * (phys_slice0_sa->w / fmtl->bw));<br>
+   uint32_t row_pitch = bs * (phys_slice0_sa->w / fmtl->bw);<br>
<br>
    /* From the Broadwel PRM >> Volume 2d: Command Reference: Structures >><br>
     * RENDER_SURFACE_STATE Surface Pitch (p349):<br>
@@ -1103,13 +1101,7 @@ isl_calc_tiled_row_pitch(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 row_pitch = total_w_tl * tile_info->phys_extent_B.<wbr>width;<br>
-   if (row_pitch < info->min_row_pitch) {<br>
-      row_pitch = isl_align_npot(info->min_row_<wbr>pitch,<br>
-                                 tile_info->phys_extent_B.<wbr>width);<br>
-   }<br>
-<br>
-   return row_pitch;<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 5f73639fb48..4fcd416054d 100644<br>
--- a/src/intel/isl/isl.h<br>
+++ b/src/intel/isl/isl.h<br>
@@ -810,9 +810,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::row_pitch, in bytes. */<br>
-   uint32_t min_row_pitch;<br>
-<br>
    /**<br>
     * Exact value for isl_surf::row_pitch. Ignored if zero.<br>
     *<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>