summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30/nv30_fragprog.c
diff options
context:
space:
mode:
authorStephane Marchesin <[email protected]>2008-08-18 03:00:25 +0200
committerStephane Marchesin <[email protected]>2008-08-18 03:00:25 +0200
commitf90e50dff9e5cdbad6e9bb74c0aeaaaa82242b25 (patch)
tree6bc78e9dadb3bd9047b688e24c805c0befdc5dff /src/gallium/drivers/nv30/nv30_fragprog.c
parent6858dd50c9b696c1c6044f5a403000f9d20b286b (diff)
nv30: add some opcodes.
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_fragprog.c')
-rw-r--r--src/gallium/drivers/nv30/nv30_fragprog.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_fragprog.c b/src/gallium/drivers/nv30/nv30_fragprog.c
index d3693fdf567..02f30ad9bad 100644
--- a/src/gallium/drivers/nv30/nv30_fragprog.c
+++ b/src/gallium/drivers/nv30/nv30_fragprog.c
@@ -526,6 +526,12 @@ nv30_fragprog_parse_instruction(struct nv30_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:
arith(fpc, sat, POW, dst, mask, src[0], src[1], none);
break;
@@ -557,6 +563,9 @@ nv30_fragprog_parse_instruction(struct nv30_fpc *fpc,
case TGSI_OPCODE_SGE:
arith(fpc, sat, SGE, dst, mask, src[0], src[1], none);
break;
+ case TGSI_OPCODE_SGT:
+ arith(fpc, sat, SGT, dst, mask, src[0], src[1], none);
+ break;
case TGSI_OPCODE_SLT:
arith(fpc, sat, SLT, dst, mask, src[0], src[1], none);
break;
@@ -730,6 +739,8 @@ nv30_fragprog_translate(struct nv30_context *nv30,
struct tgsi_parse_context parse;
struct nv30_fpc *fpc = NULL;
+ tgsi_dump(fp->pipe.tokens,0);
+
fpc = CALLOC(1, sizeof(struct nv30_fpc));
if (!fpc)
return;