From: Eric Anholt Date: Wed, 8 Dec 2010 01:07:05 +0000 (-0800) Subject: i965: Fix flipped value of the not-embedded-in-if on gen6. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2167a6c013c057e731b96486e3363c1d1171d60;p=mesa.git i965: Fix flipped value of the not-embedded-in-if on gen6. Fixes: glean/glsl1-! (not) operator (1, fail) glean/glsl1-! (not) operator (1, pass) --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 8840b6d6f73..6bb195b4877 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1625,7 +1625,7 @@ fs_visitor::emit_if_gen6(ir_if *ir) switch (expr->operation) { case ir_unop_logic_not: - inst = emit(fs_inst(BRW_OPCODE_IF, temp, op[0], fs_reg(1))); + inst = emit(fs_inst(BRW_OPCODE_IF, temp, op[0], fs_reg(0))); inst->conditional_mod = BRW_CONDITIONAL_Z; return;