aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-05-17 19:28:37 -0600
committerBrian Paul <[email protected]>2016-05-18 14:57:45 -0600
commit96909ef12802fdc8b5a9870bcfde89881ecedf86 (patch)
tree2774b2e85d2e0ed42c189216ba5848d28c1d7f3e /src
parent9c290b1e5468a66bd856ceee372079e3ce43def8 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/spirv/spirv_to_nir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 56948bf8a3f..c92dfca3e38 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,