projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6807182
)
r600: fix rsq from negative input
author
Andre Maasikas
<amaasikas@gmail.com>
Wed, 1 Sep 2010 07:38:07 +0000
(10:38 +0300)
committer
Andre Maasikas
<amaasikas@gmail.com>
Thu, 9 Sep 2010 08:08:10 +0000
(11:08 +0300)
arbfp specifies rsq of abs value
src/mesa/drivers/dri/r600/r700_assembler.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/r700_assembler.c
b/src/mesa/drivers/dri/r600/r700_assembler.c
index 45ff9c06249d93fad3e85e1e9600b6e048bdbc0b..6a9bd85247ebecf34cc294d0e3067f5c92f67f2e 100644
(file)
--- 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;