<div dir="ltr"><div class="gmail_extra"><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/compiler/nir/nir_opt_<wbr>constant_folding.c | 2 ++<br>
1 file changed, 2 insertions(+)<br>
<br>
diff --git a/src/compiler/nir/nir_opt_<wbr>constant_folding.c b/src/compiler/nir/nir_opt_<wbr>constant_folding.c<br>
index d6be807b3dc..b63660ea4da 100644<br>
--- a/src/compiler/nir/nir_opt_<wbr>constant_folding.c<br>
+++ b/src/compiler/nir/nir_opt_<wbr>constant_folding.c<br>
@@ -78,6 +78,8 @@ constant_fold_alu_instr(nir_<wbr>alu_instr *instr, void *mem_ctx)<br>
j++) {<br>
if (load_const->def.bit_size == 64)<br>
src[i].u64[j] = load_const->value.u64[instr-><wbr>src[i].swizzle[j]];<br>
+ else if (load_const->def.bit_size == 16)<br>
+ src[i].u16[j] = load_const->value.u16[instr-><wbr>src[i].swizzle[j]];<br>
else<br>
src[i].u32[j] = load_const->value.u32[instr-><wbr>src[i].swizzle[j]];<br></blockquote><div><br></div><div>Let's make this a switch and support 8 while we're at it.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
}<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></div>