mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
i965: Do VS SGT, SLT, and friends using CMP, SEL instead of CMP, MOV, MOV.
This commit is contained in:
parent
512d8ca2f3
commit
8ef3b1834a
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue