<div dir="ltr"><div>Skipping an instruction is incorrect.<br></div><div><br>I recommend something like this: <a href="https://patchwork.freedesktop.org/patch/217304/">https://patchwork.freedesktop.org/patch/217304/</a><br><br></div><div>Marek<br></div><div><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 3, 2018 at 8:32 AM, Andriy Khulap <span dir="ltr"><<a href="mailto:andriy.khulap@gmail.com" target="_blank">andriy.khulap@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=105438" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=105438</a><br>
Signed-off-by: Andriy Khulap <<a href="mailto:andriy.khulap@globallogic.com">andriy.khulap@globallogic.com</a><wbr>><br>
Signed-off-by: Vadym Shovkoplias <<a href="mailto:vadym.shovkoplias@globallogic.com">vadym.shovkoplias@<wbr>globallogic.com</a>><br>
---<br>
src/compiler/glsl/glsl_to_nir.<wbr>cpp | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/compiler/glsl/glsl_to_<wbr>nir.cpp b/src/compiler/glsl/glsl_to_<wbr>nir.cpp<br>
index dbb58d82e8..1a0cd822a0 100644<br>
--- a/src/compiler/glsl/glsl_to_<wbr>nir.cpp<br>
+++ b/src/compiler/glsl/glsl_to_<wbr>nir.cpp<br>
@@ -1952,6 +1952,9 @@ nir_visitor::visit(ir_<wbr>expression *ir)<br>
case ir_quadop_vector:<br>
result = nir_vec(&b, srcs, ir->type->vector_elements);<br>
break;<br>
+ case ir_binop_vector_extract:<br>
+ /* Prevent the unreachable trap */<br>
+ break;<br>
<br>
default:<br>
unreachable("not reached");<br>
<span class="HOEnZb"><font color="#888888">-- <br>
2.16.2<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>