<div dir="ltr">Looking through commit titles, I don't see any obvious place where this would get used.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 28, 2018 at 11:51 AM, Rob Clark <span dir="ltr"><<a href="mailto:robdclark@gmail.com" target="_blank">robdclark@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: Rob Clark <<a href="mailto:robdclark@gmail.com">robdclark@gmail.com</a>><br>
---<br>
 src/compiler/nir_types.cpp | 12 ++++++++++++<br>
 src/compiler/nir_types.h   |  4 ++++<br>
 2 files changed, 16 insertions(+)<br>
<br>
diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp<br>
index cbdd452dc81..0085a19248a 100644<br>
--- a/src/compiler/nir_types.cpp<br>
+++ b/src/compiler/nir_types.cpp<br>
@@ -117,6 +117,18 @@ glsl_get_aoa_size(const struct glsl_type *type)<br>
    return type->arrays_of_arrays_size();<br>
 }<br>
<br>
+unsigned<br>
+glsl_std430_size(const struct glsl_type *type, bool row_major)<br>
+{<br>
+   return type->std430_size(row_major);<br>
+}<br>
+<br>
+unsigned<br>
+glsl_std430_base_alignment(<wbr>const struct glsl_type *type, bool row_major)<br>
+{<br>
+   return type->std430_base_alignment(<wbr>row_major);<br>
+}<br>
+<br>
 unsigned<br>
 glsl_count_attribute_slots(<wbr>const struct glsl_type *type,<br>
                            bool is_vertex_input)<br>
diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h<br>
index e2dfd1ef5b7..5b5e09d137f 100644<br>
--- a/src/compiler/nir_types.h<br>
+++ b/src/compiler/nir_types.h<br>
@@ -71,6 +71,10 @@ unsigned glsl_get_length(const struct glsl_type *type);<br>
<br>
 unsigned glsl_get_aoa_size(const struct glsl_type *type);<br>
<br>
+unsigned glsl_std430_size(const struct glsl_type *type, bool row_major);<br>
+<br>
+unsigned glsl_std430_base_alignment(<wbr>const struct glsl_type *type, bool row_major);<br>
+<br>
 unsigned glsl_count_attribute_slots(<wbr>const struct glsl_type *type,<br>
                                     bool is_vertex_input);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.14.3<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>