<div dir="ltr"><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br><br></div>I think they make sense as two separate patches.  I've updated my patch title to say that it's only for match_value and I'll push both once Jenkins is done with them.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 1, 2018 at 9:06 AM, Jose Maria Casanova Crespo <span dir="ltr"><<a href="mailto:jmcasanova@igalia.com" target="_blank">jmcasanova@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
 src/compiler/nir/nir_search.c | 15 +++++++++++++++<br>
 1 file changed, 15 insertions(+)<br>
<br>
diff --git a/src/compiler/nir/nir_search.<wbr>c b/src/compiler/nir/nir_search.<wbr>c<br>
index c7c52ae320d..28b36b2b863 100644<br>
--- a/src/compiler/nir/nir_search.<wbr>c<br>
+++ b/src/compiler/nir/nir_search.<wbr>c<br>
@@ -525,6 +525,9 @@ construct_value(const nir_search_value *value,<br>
       case nir_type_float:<br>
          load-><a href="http://def.name" rel="noreferrer" target="_blank">def.name</a> = ralloc_asprintf(load, "%f", c->data.d);<br>
          switch (bitsize->dest_size) {<br>
+         case 16:<br>
+            load->value.u16[0] = _mesa_float_to_half(c->data.d)<wbr>;<br>
+            break;<br>
          case 32:<br>
             load->value.f32[0] = c->data.d;<br>
             break;<br>
@@ -539,6 +542,12 @@ construct_value(const nir_search_value *value,<br>
       case nir_type_int:<br>
          load-><a href="http://def.name" rel="noreferrer" target="_blank">def.name</a> = ralloc_asprintf(load, "%" PRIi64, c->data.i);<br>
          switch (bitsize->dest_size) {<br>
+         case 8:<br>
+            load->value.i8[0] = c->data.i;<br>
+            break;<br>
+         case 16:<br>
+            load->value.i16[0] = c->data.i;<br>
+            break;<br>
          case 32:<br>
             load->value.i32[0] = c->data.i;<br>
             break;<br>
@@ -553,6 +562,12 @@ construct_value(const nir_search_value *value,<br>
       case nir_type_uint:<br>
          load-><a href="http://def.name" rel="noreferrer" target="_blank">def.name</a> = ralloc_asprintf(load, "%" PRIu64, c->data.u);<br>
          switch (bitsize->dest_size) {<br>
+         case 8:<br>
+            load->value.u8[0] = c->data.u;<br>
+            break;<br>
+         case 16:<br>
+            load->value.u16[0] = c->data.u;<br>
+            break;<br>
          case 32:<br>
             load->value.u32[0] = c->data.u;<br>
             break;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.14.3<br>
<br>
</font></span></blockquote></div><br></div>