summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv30/nv30_vertprog.c
diff options
context:
space:
mode:
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>2008-08-18 03:00:25 +0200
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>2008-08-18 03:00:25 +0200
commitf90e50dff9e5cdbad6e9bb74c0aeaaaa82242b25 (patch)
tree6bc78e9dadb3bd9047b688e24c805c0befdc5dff /src/gallium/drivers/nv30/nv30_vertprog.c
parent6858dd50c9b696c1c6044f5a403000f9d20b286b (diff)
nv30: add some opcodes.
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_vertprog.c')
-rw-r--r--src/gallium/drivers/nv30/nv30_vertprog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_vertprog.c b/src/gallium/drivers/nv30/nv30_vertprog.c
index 6c075cdb75..72824559e8 100644
--- a/src/gallium/drivers/nv30/nv30_vertprog.c
+++ b/src/gallium/drivers/nv30/nv30_vertprog.c
@@ -4,6 +4,7 @@
#include "pipe/p_shader_tokens.h"
#include "tgsi/tgsi_parse.h"
+#include "tgsi/tgsi_dump.h"
#include "nv30_context.h"
#include "nv30_state.h"
@@ -457,6 +458,9 @@ nv30_vertprog_parse_instruction(struct nv30_vpc *vpc,
case TGSI_OPCODE_SGE:
arith(vpc, 0, OP_SGE, dst, mask, src[0], src[1], none);
break;
+ case TGSI_OPCODE_SGT:
+ arith(vpc, 0, OP_SGT, dst, mask, src[0], src[1], none);
+ break;
case TGSI_OPCODE_SLT:
arith(vpc, 0, OP_SLT, dst, mask, src[0], src[1], none);
break;
@@ -570,6 +574,8 @@ nv30_vertprog_translate(struct nv30_context *nv30,
struct tgsi_parse_context parse;
struct nv30_vpc *vpc = NULL;
+ tgsi_dump(vp->pipe.tokens,0);
+
vpc = CALLOC(1, sizeof(struct nv30_vpc));
if (!vpc)
return;