<div dir="ltr">There are about three different versions of this helper floating around these days, none of them merged. :-(  Let's go ahead and land this and someone can combine them later.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 13, 2017 at 7:50 AM, Topi Pohjolainen <span dir="ltr"><<a href="mailto:topi.pohjolainen@gmail.com" target="_blank">topi.pohjolainen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>><br>
---<br>
 src/mesa/drivers/dri/i965/<wbr>intel_blit.h | 13 +++++++++++++<br>
 1 file changed, 13 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>intel_blit.h b/src/mesa/drivers/dri/i965/<wbr>intel_blit.h<br>
index 2604417e2d..5e4d1f5eb4 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>intel_blit.h<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>intel_blit.h<br>
@@ -28,6 +28,19 @@<br>
<br>
 #include "brw_context.h"<br>
<br>
+static inline unsigned<br>
+isl_tiling_to_bufmgr_tiling(<wbr>enum isl_tiling tiling)<br>
+{<br>
+   if (tiling == ISL_TILING_X)<br>
+      return I915_TILING_X;<br>
+<br>
+   if (tiling == ISL_TILING_Y0)<br>
+      return I915_TILING_Y;<br>
+<br>
+   /* All other are unknown to buffer allocator. */<br>
+   return I915_TILING_NONE;<br>
+}<br>
+<br>
 bool<br>
 intelEmitCopyBlit(struct brw_context *brw,<br>
                   GLuint cpp,<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.11.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>