Cosmetic changes.
authormichal <michal@michal-laptop.(none)>
Thu, 16 Aug 2007 17:16:32 +0000 (18:16 +0100)
committermichal <michal@michal-laptop.(none)>
Thu, 16 Aug 2007 17:17:07 +0000 (18:17 +0100)
src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c

index 2c8deac..1de80eb 100644 (file)
@@ -513,6 +513,7 @@ tgsi_mesa_compile_fp_program(
 {\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
@@ -526,7 +527,10 @@ tgsi_mesa_compile_fp_program(
    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
@@ -645,10 +649,9 @@ tgsi_mesa_compile_fp_program(
             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
@@ -668,7 +671,7 @@ tgsi_mesa_compile_vp_program(
    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
@@ -684,16 +687,18 @@ tgsi_mesa_compile_vp_program(
 \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