i965: Do VS SGT, SLT, and friends using CMP, SEL instead of CMP, MOV, MOV.

This commit is contained in:
Eric Anholt 2010-03-10 17:35:02 -08:00
parent 512d8ca2f3
commit 8ef3b1834a

View file

@ -384,9 +384,8 @@ static void emit_sop( struct brw_vs_compile *c,
{
struct brw_compile *p = &c->func;
brw_MOV(p, dst, brw_imm_f(0.0f));
brw_CMP(p, brw_null_reg(), cond, arg0, arg1);
brw_MOV(p, dst, brw_imm_f(1.0f));
brw_CMP(p, brw_null_reg(), cond, arg1, arg0);
brw_SEL(p, dst, brw_null_reg(), brw_imm_f(1.0f));
brw_set_predicate_control_flag_value(p, 0xff);
}