Mesa (gallium-0.2): nv40: apply ABS modifier to RSQ source in vp
Ben Skeggs
darktama at kemper.freedesktop.org
Tue Dec 16 06:34:53 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: 10e0129dbc70194d54c31ef3b97766b9b69c2442
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=10e0129dbc70194d54c31ef3b97766b9b69c2442
Author: Ben Skeggs <skeggsb at gmail.com>
Date: Tue Dec 16 17:34:04 2008 +1100
nv40: apply ABS modifier to RSQ source in vp
Gallium used to do this for us :)
---
src/gallium/drivers/nv40/nv40_vertprog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/nv40/nv40_vertprog.c b/src/gallium/drivers/nv40/nv40_vertprog.c
index ff988e6..1392fe9 100644
--- a/src/gallium/drivers/nv40/nv40_vertprog.c
+++ b/src/gallium/drivers/nv40/nv40_vertprog.c
@@ -571,7 +571,7 @@ nv40_vertprog_parse_instruction(struct nv40_vpc *vpc,
case TGSI_OPCODE_RET:
break;
case TGSI_OPCODE_RSQ:
- arith(vpc, 1, OP_RSQ, dst, mask, none, none, src[0]);
+ arith(vpc, 1, OP_RSQ, dst, mask, none, none, abs(src[0]));
break;
case TGSI_OPCODE_SGE:
arith(vpc, 0, OP_SGE, dst, mask, src[0], src[1], none);
More information about the mesa-commit
mailing list