summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-03-17 19:50:27 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-03-17 19:50:42 +0000
commit05318c5afab768b85648909ee957ebf537fc10a8 (patch)
tree369762c5999b72faefabe62d3c6d8ddb2a0ce723
parente87f26a9b6af3d5737325653d3cdb221278f70e2 (diff)
tgsi: Restore statement ordering.
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_parse.c b/src/gallium/auxiliary/tgsi/tgsi_parse.c
index 1c1263e596..0081f74ffc 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_parse.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_parse.c
@@ -147,7 +147,6 @@ tgsi_parse_token(
case TGSI_TOKEN_TYPE_IMMEDIATE:
{
struct tgsi_full_immediate *imm = &ctx->FullToken.FullImmediate;
- uint imm_count = imm->Immediate.NrTokens - 1;
*imm = tgsi_default_full_immediate();
copy_token(&imm->Immediate, &token);
@@ -156,6 +155,7 @@ tgsi_parse_token(
switch (imm->Immediate.DataType) {
case TGSI_IMM_FLOAT32:
{
+ uint imm_count = imm->Immediate.NrTokens - 1;
struct tgsi_immediate_float32 *data;
data = (struct tgsi_immediate_float32 *) MALLOC(sizeof(struct tgsi_immediate_float32) * imm_count);