projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d32d4f7
)
i915g: move code after declaration
author
Brian Paul
<brianp@vmware.com>
Wed, 6 Jul 2011 23:18:32 +0000
(17:18 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 7 Jul 2011 00:10:00 +0000
(18:10 -0600)
src/gallium/drivers/i915/i915_fpc_optimize.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/i915/i915_fpc_optimize.c
b/src/gallium/drivers/i915/i915_fpc_optimize.c
index aee9dbde3578b3ef37f9188d6ff49557c599c19a..406945c6798bc559bf49f61f31c185aa86724de7 100644
(file)
--- 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 ) ) {