From 6ef5f212343c0557c4fca272d8236226c1a7c87a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 9 Sep 2010 19:49:58 -0700 Subject: i965: Add switch cases for ir_unop_noise, which should have been lowered. Fixes compiler warnings. --- src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp') diff --git a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp index d8d58a9467..478614090a 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp @@ -356,6 +356,9 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment *ir) assign(ir, 0, last); break; } + case ir_unop_noise: + assert(!"noise should have been broken down to function call"); + break; } ir->remove(); -- cgit v1.2.3