[Mesa-dev] [PATCH 3/3] i965/fs: Mark case unreachable to silence warning.
Matt Turner
mattst88 at gmail.com
Mon Jun 30 10:27:40 PDT 2014
---
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 06ae4a1..90528ed 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -1449,6 +1449,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;
--
1.8.3.2
More information about the mesa-dev
mailing list