i965: Fix broken asserts
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 17 Nov 2013 01:57:51 +0000 (14:57 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sun, 17 Nov 2013 05:56:57 +0000 (18:56 +1300)
These would never fire.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
src/mesa/drivers/dri/i965/brw_vec4_vp.cpp

index 5024bed5cb20855e57d3901c2188ffb019c5de00..e154441279cbf762e3993828c89470569c83003b 100644 (file)
@@ -418,7 +418,7 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment *ir)
    case ir_unop_unpack_half_2x16_split_x:
    case ir_unop_unpack_half_2x16_split_y:
    case ir_binop_pack_half_2x16_split:
-      assert("!not reached: expression operates on scalars only");
+      assert(!"not reached: expression operates on scalars only");
       break;
    }
 
index 1f3d75c7add68a1ab21983acc518b683d6209631..d98bad18c3cf07bef870485526d610c86aa2c1f7 100644 (file)
@@ -493,7 +493,7 @@ vec4_vs_visitor::get_vp_dst_reg(const prog_dst_register &dst)
       return dst_null_f();
 
    default:
-      assert("vec4_vp: bad destination register file");
+      assert(!"vec4_vp: bad destination register file");
       return dst_reg(this, glsl_type::vec4_type);
    }