projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e87f26a
)
tgsi: Restore statement ordering.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 17 Mar 2009 19:50:27 +0000
(19:50 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Tue, 17 Mar 2009 19:50:42 +0000
(19:50 +0000)
src/gallium/auxiliary/tgsi/tgsi_parse.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_parse.c
b/src/gallium/auxiliary/tgsi/tgsi_parse.c
index 1c1263e596fb5b06fa6820f295118c64a62e1067..0081f74ffc491074f6cc7846943faec10af7e125 100644
(file)
--- 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);