[Mesa-dev] [PATCH 1/4] fix maybe uninitialized warning in spirv compiler
Marc Dietrich
marvin24 at gmx.de
Fri Mar 23 13:32:55 UTC 2018
add unreachable default case.
Signed-off-by: Marc Dietrich <marvin24 at gmx.de>
---
src/compiler/spirv/vtn_subgroup.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/compiler/spirv/vtn_subgroup.c b/src/compiler/spirv/vtn_subgroup.c
index bd3143962b..107fe247b5 100644
--- a/src/compiler/spirv/vtn_subgroup.c
+++ b/src/compiler/spirv/vtn_subgroup.c
@@ -277,6 +277,8 @@ vtn_handle_subgroup(struct vtn_builder *b, SpvOp opcode,
case 2:
op = nir_intrinsic_quad_swap_diagonal;
break;
+ default:
+ unreachable("Unhandled opcode");
}
vtn_build_subgroup_instr(b, op, val->ssa, vtn_ssa_value(b, w[4]),
NULL, 0, 0);
--
2.16.2
More information about the mesa-dev
mailing list