diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 13a3bf29da8..7a697e898fe 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -2422,8 +2422,9 @@ fs_visitor::visit(ir_discard *ir) */ fs_inst *cmp; if (ir->condition) { - ir->condition->accept(this); - cmp = emit(CMP(reg_null_f, this->result, fs_reg(0), BRW_CONDITIONAL_Z)); + emit_bool_to_cond_code(ir->condition); + cmp = (fs_inst *) this->instructions.get_tail(); + cmp->conditional_mod = brw_negate_cmod(cmp->conditional_mod); } else { fs_reg some_reg = fs_reg(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UW)); |