summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-03-23 10:46:08 -0600
committerBrian <[email protected]>2007-03-23 10:46:08 -0600
commit2bdac09d16904334424a53d4c7436408a5cc3ca5 (patch)
tree67f2e77e1e569a63dd634a2587af2a7423c285a8 /src
parentfe20a619cf382e7d21a31b096311dab8254b2b0c (diff)
updated comment
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c
index 6442a023634..16a054b35e5 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;