projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9575e35
)
nv40: "implement" noise opcodes in fragprog
author
Ben Skeggs
<skeggsb@gmail.com>
Wed, 19 Mar 2008 10:52:19 +0000
(21:52 +1100)
committer
Ben Skeggs
<skeggsb@gmail.com>
Wed, 19 Mar 2008 11:50:42 +0000
(22:50 +1100)
For the moment, we do what NVIDIA does and return 0 unconditionally. This
isn't correct, but it's an implementation at least.
src/gallium/drivers/nv40/nv40_fragprog.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv40/nv40_fragprog.c
b/src/gallium/drivers/nv40/nv40_fragprog.c
index 4fb28a01ea2cb4dd41d25a62a9fdc64d611af79b..33aac37d569fcdc3fc2f1d5f97ddb2c519ea9192 100644
(file)
--- a/
src/gallium/drivers/nv40/nv40_fragprog.c
+++ b/
src/gallium/drivers/nv40/nv40_fragprog.c
@@
-554,6
+554,12
@@
nv40_fragprog_parse_instruction(struct nv40_fpc *fpc,
case TGSI_OPCODE_MUL:
arith(fpc, sat, MUL, dst, mask, src[0], src[1], none);
break;
+ case TGSI_OPCODE_NOISE1:
+ case TGSI_OPCODE_NOISE2:
+ case TGSI_OPCODE_NOISE3:
+ case TGSI_OPCODE_NOISE4:
+ arith(fpc, sat, SFL, dst, mask, none, none, none);
+ break;
case TGSI_OPCODE_POW:
tmp = temp(fpc);
arith(fpc, 0, LG2, tmp, MASK_X,