r600: DPH adds w comp of second operand, so set first one to 1 instead
authorAndre Maasikas <amaasikas@gmail.com>
Mon, 12 Oct 2009 09:20:26 +0000 (12:20 +0300)
committerAndre Maasikas <amaasikas@gmail.com>
Mon, 12 Oct 2009 13:28:16 +0000 (16:28 +0300)
src/mesa/drivers/dri/r600/r700_assembler.c

index fefae22ba7c5384287ce28e93d7efd6f9a9c9ed3..a1331fdfd209af5cfa8ee1048f8469e7e83ede16 100644 (file)
@@ -2635,7 +2635,7 @@ GLboolean assemble_DOT(r700_AssemblerBase *pAsm)
     }
     else if(pAsm->pILInst[pAsm->uiCurInst].Opcode == OPCODE_DPH) 
     {
-        onecomp_PVSSRC(&(pAsm->S[1].src), 3);
+        onecomp_PVSSRC(&(pAsm->S[0].src), 3);
     } 
 
     if ( GL_FALSE == next_ins(pAsm) )