<div dir="ltr">Much nicer!<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">All callers of isl_surf_init() that set 'min_row_pitch' wanted to<br>
request an *exact* row pitch, as evidenced by nearby asserts, but isl<br>
lacked API for doing so. Now that isl has an API for that, update the<br>
code to use it.<br>
---<br>
src/intel/blorp/blorp_blit.c | 3 +--<br>
src/intel/vulkan/anv_blorp.c | 3 +--<br>
src/intel/vulkan/anv_image.c | 2 +-<br>
3 files changed, 3 insertions(+), 5 deletions(-)<br>
<br>
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c<br>
index 212d6218853..a3d7937825d 100644<br>
--- a/src/intel/blorp/blorp_blit.c<br>
+++ b/src/intel/blorp/blorp_blit.c<br>
@@ -1419,13 +1419,12 @@ surf_convert_to_single_slice(<wbr>const struct isl_device *isl_dev,<br>
.levels = 1,<br>
.array_len = 1,<br>
.samples = info->surf.samples,<br>
- .min_row_pitch = info->surf.row_pitch,<br>
+ .row_pitch = info->surf.row_pitch,<br>
.usage = info->surf.usage,<br>
.tiling_flags = 1 << info->surf.tiling,<br>
};<br>
<br>
isl_surf_init_s(isl_dev, &info->surf, &init_info);<br>
- assert(info->surf.row_pitch == init_info.min_row_pitch);<br>
<br>
/* The view is also different now. */<br>
info->view.base_level = 0;<br>
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c<br>
index 215afe7d4df..57f689fff77 100644<br>
--- a/src/intel/vulkan/anv_blorp.c<br>
+++ b/src/intel/vulkan/anv_blorp.c<br>
@@ -159,11 +159,10 @@ get_blorp_surf_for_anv_buffer(<wbr>struct anv_device *device,<br>
.levels = 1,<br>
.array_len = 1,<br>
.samples = 1,<br>
- .min_row_pitch = row_pitch,<br>
+ .row_pitch = row_pitch,<br>
.usage = ISL_SURF_USAGE_TEXTURE_BIT |<br>
ISL_SURF_USAGE_RENDER_TARGET_<wbr>BIT,<br>
.tiling_flags = ISL_TILING_LINEAR_BIT);<br>
- assert(isl_surf->row_pitch == row_pitch);<br>
}<br>
<br>
static void<br>
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c<br>
index 4aa8b965b13..a70861d38d0 100644<br>
--- a/src/intel/vulkan/anv_image.c<br>
+++ b/src/intel/vulkan/anv_image.c<br>
@@ -166,7 +166,7 @@ make_surface(const struct anv_device *dev,<br>
.array_len = vk_info->arrayLayers,<br>
.samples = vk_info->samples,<br>
.min_alignment = 0,<br>
- .min_row_pitch = anv_info->stride,<br>
+ .row_pitch = anv_info->stride,<br>
.usage = choose_isl_surf_usage(image-><wbr>usage, aspect),<br>
.tiling_flags = tiling_flags);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<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>