From fcac7020cfbde4d97985a932f1a90eb42e84c277 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 29 Jun 2014 18:24:18 -0700 Subject: [PATCH] i965/fs: Mark case unreachable to silence warning. Reviewed-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index ee4ff90c2e5..6d9c31f2336 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -1441,6 +1441,8 @@ fs_visitor::emit_texture_gen7(ir_texture *ir, fs_reg dst, fs_reg coordinate, else opcode = SHADER_OPCODE_TG4; break; + default: + unreachable("not reached"); } fs_inst *inst = emit(opcode, dst, src_payload); inst->base_mrf = -1; -- 2.30.2