summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Maasikas <[email protected]>2010-09-01 10:38:07 +0300
committerAndre Maasikas <[email protected]>2010-09-09 11:08:10 +0300
commit9d0d78ad3f1f906c99dae593e9ebc0c52496ffe1 (patch)
tree99618aace92576fafeb50e23c95d27f61c8b5a8c
parent68071822f74384053905d7e5821de8b293f453eb (diff)
r600: fix rsq from negative input
arbfp specifies rsq of abs value
-rw-r--r--src/mesa/drivers/dri/r600/r700_assembler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_assembler.c b/src/mesa/drivers/dri/r600/r700_assembler.c
index 45ff9c06249..6a9bd85247e 100644
--- a/src/mesa/drivers/dri/r600/r700_assembler.c
+++ b/src/mesa/drivers/dri/r600/r700_assembler.c
@@ -3189,6 +3189,9 @@ GLboolean assemble_math_function(r700_AssemblerBase* pAsm, BITS opcode)
return GL_FALSE;
}
+ if( pAsm->pILInst[pAsm->uiCurInst].Opcode == OPCODE_RSQ )
+ pAsm->S[0].src.abs = 1;
+
if ( GL_FALSE == next_ins(pAsm) )
{
return GL_FALSE;