<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 31, 2016 at 2:59 AM, Samuel Iglesias Gonsálvez <span dir="ltr"><<a href="mailto:siglesias@igalia.com" target="_blank">siglesias@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">From: Connor Abbott <<a href="mailto:connor.w.abbott@intel.com">connor.w.abbott@intel.com</a>><br>
<br>
---<br>
 src/compiler/nir/nir.c | 5 +++++<br>
 1 file changed, 5 insertions(+)<br>
<br>
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c<br>
</span>index 56a5009..35ad2b3 100644<br>
--- a/src/compiler/nir/nir.c<br>
+++ b/src/compiler/nir/nir.c<br>
@@ -698,6 +698,8 @@ nir_deref_get_const_initializer_load(nir_shader *shader, nir_deref_var *deref)<br>
       nir_load_const_instr_create(shader, glsl_get_vector_elements(tail->type),<br>
                                   32);<br>
<span class=""><br>
+   load->def.bit_size = glsl_get_bit_size(glsl_get_base_type(tail->type));<br></span></blockquote><div><br></div><div>This should just be passed into the load_const_initializer_create() above.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
+<br>
    matrix_offset *= load->def.num_components;<br>
    for (unsigned i = 0; i < load->def.num_components; i++) {<br>
       switch (glsl_get_base_type(tail->type)) {<br>
</span>@@ -706,6 +708,9 @@ nir_deref_get_const_initializer_load(nir_shader *shader, nir_deref_var *deref)<br>
<div class="HOEnZb"><div class="h5">       case GLSL_TYPE_UINT:<br>
          load->value.u32[i] = constant->value.u[matrix_offset + i];<br>
          break;<br>
+      case GLSL_TYPE_DOUBLE:<br>
+         load->value.f64[i] = constant->value.d[matrix_offset + i];<br>
+         break;<br>
       case GLSL_TYPE_BOOL:<br>
          load->value.u32[i] = constant->value.b[matrix_offset + i] ?<br>
                              NIR_TRUE : NIR_FALSE;<br>
--<br>
2.5.0<br>
<br>
_______________________________________________<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/mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div></div>