<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 11, 2018 at 12:20 AM, Iago Toral Quiroga <span dir="ltr"><<a href="mailto:itoral@igalia.com" target="_blank">itoral@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Jose Maria Casanova Crespo <<a href="mailto:jmcasanova@igalia.com">jmcasanova@igalia.com</a>><br>
<br>
---<br>
src/intel/compiler/brw_fs_nir.<wbr>cpp | 5 +++++<br>
1 file changed, 5 insertions(+)<br>
<br>
diff --git a/src/intel/compiler/brw_fs_<wbr>nir.cpp b/src/intel/compiler/brw_fs_<wbr>nir.cpp<br>
index ad31f7c82dc..822a1ac4227 100644<br>
--- a/src/intel/compiler/brw_fs_<wbr>nir.cpp<br>
+++ b/src/intel/compiler/brw_fs_<wbr>nir.cpp<br>
@@ -1509,6 +1509,11 @@ fs_visitor::nir_emit_load_<wbr>const(const fs_builder &bld,<br>
fs_reg reg = bld.vgrf(reg_type, instr->def.num_components);<br>
<br>
switch (instr->def.bit_size) {<br>
+ case 16:<br>
+ for (unsigned i = 0; i < instr->def.num_components; i++)<br>
+ bld.MOV(offset(reg, bld, i), brw_imm_w(instr->value.i16[i])<wbr>);<br>
+ break;<br>
+<br>
case 32:<br>
for (unsigned i = 0; i < instr->def.num_components; i++)<br>
bld.MOV(offset(reg, bld, i), brw_imm_d(instr->value.i32[i])<wbr>);<br>
<span class="HOEnZb"><font color="#888888">-- <br>
2.14.1<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>