From 9d0d78ad3f1f906c99dae593e9ebc0c52496ffe1 Mon Sep 17 00:00:00 2001 From: Andre Maasikas Date: Wed, 1 Sep 2010 10:38:07 +0300 Subject: [PATCH] r600: fix rsq from negative input arbfp specifies rsq of abs value --- src/mesa/drivers/dri/r600/r700_assembler.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2