i965/vec4: Remove unused emit_bool_comparison method.
authorMatt Turner <mattst88@gmail.com>
Thu, 7 Aug 2014 02:58:34 +0000 (19:58 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 7 Aug 2014 23:00:24 +0000 (16:00 -0700)
Apparently unused since it was added in commit af3c9803.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 3d0df7785ebb9944dd6f83b6996f469fd26f4c5d..950b592120f8bb9e2e1cc87738296bd7f18a37a6 100644 (file)
@@ -486,7 +486,6 @@ public:
                     src_reg src0, src_reg src1, src_reg one);
 
    void emit_bool_to_cond_code(ir_rvalue *ir, enum brw_predicate *predicate);
-   void emit_bool_comparison(unsigned int op, dst_reg dst, src_reg src0, src_reg src1);
    void emit_if_gen6(ir_if *ir);
 
    void emit_minmax(enum brw_conditional_mod conditionalmod, dst_reg dst,
index 23d1daec3153bd44f0862f0855a4a7c22183985f..c46325aa6f79cd3f143e8c6036d2fb4c03a2ec92 100644 (file)
@@ -1173,20 +1173,6 @@ vec4_visitor::try_emit_b2f_of_compare(ir_expression *ir)
    return true;
 }
 
-void
-vec4_visitor::emit_bool_comparison(unsigned int op,
-                                dst_reg dst, src_reg src0, src_reg src1)
-{
-   /* original gen4 does destination conversion before comparison. */
-   if (brw->gen < 5)
-      dst.type = src0.type;
-
-   emit(CMP(dst, src0, src1, brw_conditional_for_comparison(op)));
-
-   dst.type = BRW_REGISTER_TYPE_D;
-   emit(AND(dst, src_reg(dst), src_reg(0x1)));
-}
-
 void
 vec4_visitor::emit_minmax(enum brw_conditional_mod conditionalmod, dst_reg dst,
                           src_reg src0, src_reg src1)