projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
300e42d
)
nv40: apply ABS modifier to RSQ source in vp
author
Ben Skeggs
<skeggsb@gmail.com>
Tue, 16 Dec 2008 06:34:04 +0000
(17:34 +1100)
committer
Ben Skeggs
<skeggsb@gmail.com>
Tue, 16 Dec 2008 06:34:47 +0000
(17:34 +1100)
Gallium used to do this for us :)
src/gallium/drivers/nv40/nv40_vertprog.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv40/nv40_vertprog.c
b/src/gallium/drivers/nv40/nv40_vertprog.c
index ff988e6a5f4164cc5b6fa3f6213504d552bdf844..1392fe956f7f6453ca726b5406ee27daa8e4d30d 100644
(file)
--- 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);