From 2bdac09d16904334424a53d4c7436408a5cc3ca5 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 23 Mar 2007 10:46:08 -0600 Subject: [PATCH] updated comment --- src/mesa/shader/slang/slang_emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index 6442a02..16a054b 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -860,8 +860,8 @@ emit_compare(slang_emit_info *emitInfo, slang_ir_node *n) inst->DstReg.File = PROGRAM_TEMPORARY; inst->DstReg.Index = n->Store->Index; inst->Comment = _mesa_strdup("Reduce vec to bool"); - /* compute D = (D == 0) actually: D.x = (D.x = 0) */ if (n->Opcode == IR_EQUAL) { + /* compute D.x = !D.x via D.x = (D.x == 0) */ inst = new_instruction(emitInfo, OPCODE_SEQ); inst->SrcReg[0].File = PROGRAM_TEMPORARY; inst->SrcReg[0].Index = n->Store->Index; -- 2.7.4