Mesa (master): spirv: add switch case for nir_texop_txf_ms_mcs in vtn_handle_texture()

Brian Paul brianp at kemper.freedesktop.org
Wed May 18 20:58:04 UTC 2016


Module: Mesa
Branch: master
Commit: 96909ef12802fdc8b5a9870bcfde89881ecedf86
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=96909ef12802fdc8b5a9870bcfde89881ecedf86

Author: Brian Paul <brianp at vmware.com>
Date:   Tue May 17 19:28:37 2016 -0600

spirv: add switch case for nir_texop_txf_ms_mcs in vtn_handle_texture()

Mark it as unreachable.  Silences a compiler warning:

spirv/spirv_to_nir.c:1397:4: warning: enumeration value
'nir_texop_txf_ms_mcs' not handled in switch [-Wswitch]
    switch (instr->op) {
    ^

Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>

---

 src/compiler/spirv/spirv_to_nir.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 56948bf..c92dfca 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -1413,6 +1413,8 @@ vtn_handle_texture(struct vtn_builder *b, SpvOp opcode,
       /* These don't */
       instr->sampler = NULL;
       break;
+   case nir_texop_txf_ms_mcs:
+      unreachable("unexpected nir_texop_txf_ms_mcs");
    }
 
    nir_ssa_dest_init(&instr->instr, &instr->dest,




More information about the mesa-commit mailing list