Browse Source

Revert "i965: Do FS SLT, SGT, and friends using CMP, SEL instead of CMP, MOV, MOV."

This reverts commit 46450c1f3f.  I was
wrong about null reg behavior -- it reads undefined, not 0.  And
they're not kidding.
tags/mesa-7.9-rc1
Eric Anholt 15 years ago
parent
commit
ba208604ea
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/mesa/drivers/dri/i965/brw_wm_emit.c

+ 5
- 2
src/mesa/drivers/dri/i965/brw_wm_emit.c View File

@@ -545,8 +545,11 @@ void emit_sop(struct brw_compile *p,
for (i = 0; i < 4; i++) {
if (mask & (1<<i)) {
brw_push_insn_state(p);
brw_CMP(p, brw_null_reg(), cond, arg1[i], arg0[i]);
brw_SEL(p, dst[i], brw_null_reg(), brw_imm_f(1.0));
brw_CMP(p, brw_null_reg(), cond, arg0[i], arg1[i]);
brw_set_predicate_control(p, BRW_PREDICATE_NONE);
brw_MOV(p, dst[i], brw_imm_f(0));
brw_set_predicate_control(p, BRW_PREDICATE_NORMAL);
brw_MOV(p, dst[i], brw_imm_f(1.0));
brw_pop_insn_state(p);
}
}

Loading…
Cancel
Save