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)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 15 Oct 2009 15:20:04 +0000 (11:20 -0400)
src/mesa/drivers/dri/r600/r700_assembler.c

index e79c256c6b71dd1dec4b4af4be0664b4018a45e1..183771288350cbac6df4918ae2b5adb9c51c3781 100644 (file)
@@ -2508,7 +2508,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) )