From: Andre Maasikas Date: Wed, 1 Sep 2010 07:38:07 +0000 (+0300) Subject: r600: fix rsq from negative input X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d0d78ad3f1f906c99dae593e9ebc0c52496ffe1;p=mesa.git r600: fix rsq from negative input arbfp specifies rsq of abs value --- 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;