aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-07-14 08:09:21 -0600
committerBrian Paul <[email protected]>2011-07-14 08:14:13 -0600
commit9726947b681225a5a438eaa7cb70c5fa36ce85ea (patch)
tree92ae6806565263bf47ecc082c856a4c31fcb93ba /src/gallium/drivers/i915
parentdb0f2b363750d57652140c68c9436f1d2d540a87 (diff)
i915g: move declaration before code
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r--src/gallium/drivers/i915/i915_fpc_translate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c
index e19d9be04de..a4ea9127976 100644
--- a/src/gallium/drivers/i915/i915_fpc_translate.c
+++ b/src/gallium/drivers/i915/i915_fpc_translate.c
@@ -1291,6 +1291,7 @@ i915_translate_fragment_program( struct i915_context *i915,
{
struct i915_fp_compile *p;
const struct tgsi_token *tokens = fs->state.tokens;
+ struct i915_token_list* i_tokens;
#if 0
tgsi_dump(tokens, 0);
@@ -1306,7 +1307,7 @@ i915_translate_fragment_program( struct i915_context *i915,
p = i915_init_compile(i915, fs);
- struct i915_token_list* i_tokens = i915_optimize(tokens);
+ i_tokens = i915_optimize(tokens);
i915_translate_instructions(p, i_tokens, fs);
i915_fixup_depth_write(p);