mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
i915g: move code after declaration
This commit is contained in:
parent
d32d4f780f
commit
7a10976adb
1 changed files with 2 additions and 1 deletions
|
|
@ -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 ) ) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue