summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/tgsi/tgsi_transform.c
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-11-27 10:06:41 +0100
committerMichal Krol <michal@vmware.com>2009-11-27 10:06:41 +0100
commite6133564bf2e65fc86f626a45d7977bdeaff8579 (patch)
tree1edecf5cd31fcd9ad6e80d5ab38b804dd7b47013 /src/gallium/auxiliary/tgsi/tgsi_transform.c
parent5455e88f1c2043b3703650ca827a0ed2779e82ca (diff)
tgsi: Remove tgsi_version token.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_transform.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_transform.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_transform.c b/src/gallium/auxiliary/tgsi/tgsi_transform.c
index bc9c18fd4a..8b8f489b35 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_transform.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_transform.c
@@ -130,15 +130,13 @@ tgsi_transform_shader(const struct tgsi_token *tokens_in,
/**
** Setup output shader
**/
- *(struct tgsi_version *) &tokens_out[0] = tgsi_build_version();
-
- ctx->header = (struct tgsi_header *) (tokens_out + 1);
+ ctx->header = (struct tgsi_header *)tokens_out;
*ctx->header = tgsi_build_header();
- processor = (struct tgsi_processor *) (tokens_out + 2);
+ processor = (struct tgsi_processor *) (tokens_out + 1);
*processor = tgsi_build_processor( procType, ctx->header );
- ctx->ti = 3;
+ ctx->ti = 2;
/**
@@ -215,7 +213,7 @@ tgsi_transform_foo( struct tgsi_token *tokens_out,
uint max_tokens_out )
{
const char *text =
- "FRAG1.1\n"
+ "FRAG\n"
"DCL IN[0], COLOR, CONSTANT\n"
"DCL OUT[0], COLOR\n"
" 0: MOV OUT[0], IN[0]\n"