<p dir="ltr">R-b</p>
<div class="gmail_quote">On May 18, 2016 5:59 AM, "Brian Paul" <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mark it as unreachable.  Silences a compiler warning:<br>
<br>
spirv/spirv_to_nir.c:1397:4: warning: enumeration value<br>
'nir_texop_txf_ms_mcs' not handled in switch [-Wswitch]<br>
    switch (instr->op) {<br>
    ^<br>
---<br>
 src/compiler/spirv/spirv_to_nir.c | 2 ++<br>
 1 file changed, 2 insertions(+)<br>
<br>
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c<br>
index c65f971..fa13f42 100644<br>
--- a/src/compiler/spirv/spirv_to_nir.c<br>
+++ b/src/compiler/spirv/spirv_to_nir.c<br>
@@ -1413,6 +1413,8 @@ vtn_handle_texture(struct vtn_builder *b, SpvOp opcode,<br>
       /* These don't */<br>
       instr->sampler = NULL;<br>
       break;<br>
+   case nir_texop_txf_ms_mcs:<br>
+      unreachable("unexpected nir_texop_txf_ms_mcs");<br>
    }<br>
<br>
    nir_ssa_dest_init(&instr->instr, &instr->dest,<br>
--<br>
1.9.1<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>
</blockquote></div>