summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-07-06 17:18:32 -0600
committerBrian Paul <[email protected]>2011-07-06 18:10:00 -0600
commit7a10976adb65010bec7952a80d1b43d62b3f8bb3 (patch)
tree314c83bcdbb979a36d7a55b0d73bd2d47892794b /src/gallium/drivers/i915
parentd32d4f780f9dad122adb63086da266aec6e88850 (diff)
i915g: move code after declaration
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r--src/gallium/drivers/i915/i915_fpc_optimize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_fpc_optimize.c b/src/gallium/drivers/i915/i915_fpc_optimize.c
index aee9dbde357..406945c6798 100644
--- a/src/gallium/drivers/i915/i915_fpc_optimize.c
+++ b/src/gallium/drivers/i915/i915_fpc_optimize.c
@@ -167,10 +167,11 @@ static void copy_token(union i915_full_token* o, union tgsi_full_token* i)
struct i915_token_list* i915_optimize(const struct tgsi_token *tokens)
{
struct i915_token_list *out_tokens = MALLOC(sizeof(struct i915_token_list));
- out_tokens->NumTokens = 0;
struct tgsi_parse_context parse;
int i = 0;
+ out_tokens->NumTokens = 0;
+
/* Count the tokens */
tgsi_parse_init( &parse, tokens );
while( !tgsi_parse_end_of_tokens( &parse ) ) {