i965: Add switch cases for ir_unop_noise, which should have been lowered.
authorEric Anholt <eric@anholt.net>
Fri, 10 Sep 2010 02:49:58 +0000 (19:49 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 10 Sep 2010 02:49:58 +0000 (19:49 -0700)
Fixes compiler warnings.

src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp

index c23e7ce78a5090bd96bf3a521426a95b0426ec53..cf5c52119a5dbc9fc2789c06e0a7382f46a428f2 100644 (file)
@@ -753,6 +753,10 @@ fs_visitor::visit(ir_expression *ir)
       assert(!"not reached: should be handled by brw_channel_expressions");
       break;
 
+   case ir_unop_noise:
+      assert(!"not reached: should be handled by lower_noise");
+      break;
+
    case ir_unop_sqrt:
       emit(fs_inst(FS_OPCODE_SQRT, this->result, op[0]));
       break;
index d8d58a9467bcf93e9c86559af062d1be0671efa5..478614090a012e249a1196a2ce62dc58565f173c 100644 (file)
@@ -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();