{\r
GLuint i, ti, count;\r
struct tgsi_header *header;\r
+ struct tgsi_processor *processor;\r
struct tgsi_full_declaration fulldecl;\r
struct tgsi_full_instruction fullinst;\r
struct tgsi_full_dst_register *fulldst;\r
header = (struct tgsi_header *) &tokens[1];\r
*header = tgsi_build_header();\r
\r
- ti = 2;\r
+ processor = (struct tgsi_processor *) &tokens[2];\r
+ *processor = tgsi_build_processor( TGSI_PROCESSOR_FRAGMENT, header );\r
+\r
+ ti = 3;\r
\r
reads_wpos = program->Base.InputsRead & (1 << FRAG_ATTRIB_WPOS);\r
inputs_read = program->Base.InputsRead | (1 << FRAG_ATTRIB_WPOS);\r
TGSI_PROCESSOR_FRAGMENT ) ) {\r
assert( i == program->Base.NumInstructions - 1 );\r
\r
- if (TGSI_DEBUG)\r
- tgsi_dump(\r
- tokens,\r
- 0/*TGSI_DUMP_VERBOSE | TGSI_DUMP_NO_IGNORED | TGSI_DUMP_NO_DEFAULT*/ );\r
+ if( TGSI_DEBUG ) {\r
+ tgsi_dump( tokens, 0 );\r
+ }\r
break;\r
}\r
\r
struct tgsi_token *tokens,\r
GLuint maxTokens )\r
{\r
- GLuint ii, ti;\r
+ GLuint i, ti;\r
struct tgsi_header *header;\r
struct tgsi_processor *processor;\r
struct tgsi_full_instruction fullinst;\r
\r
ti = 3;\r
\r
- for( ii = 0; ii < program->Base.NumInstructions; ii++ ) {\r
+ for( i = 0; i < program->Base.NumInstructions; i++ ) {\r
if( compile_instruction(\r
- &program->Base.Instructions[ii],\r
+ &program->Base.Instructions[i],\r
&fullinst,\r
inputs_read,\r
0,\r
TGSI_PROCESSOR_VERTEX ) ) {\r
- assert( ii == program->Base.NumInstructions - 1 );\r
- if (TGSI_DEBUG)\r
- tgsi_dump( tokens, TGSI_DUMP_NO_IGNORED | TGSI_DUMP_NO_DEFAULT );\r
+ assert( i == program->Base.NumInstructions - 1 );\r
+\r
+ if( TGSI_DEBUG ) {\r
+ tgsi_dump( tokens, 0 );\r
+ }\r
break;\r
}\r
\r