gallium: fix some "instruction"/"declaration" mix-ups in tgsi_exec_prepare().
authorBrian <brian.paul@tungstengraphics.com>
Thu, 14 Feb 2008 21:22:22 +0000 (14:22 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 15 Feb 2008 01:59:24 +0000 (18:59 -0700)
src/mesa/pipe/tgsi/exec/tgsi_exec.c

index 7801f95972730b3cd270c9eb0b07fefabb1b70cb..37e60070686be9b41b1071d45a4c3953a89804bc 100644 (file)
@@ -158,13 +158,13 @@ tgsi_exec_prepare( struct tgsi_exec_machine *mach )
          if (numDeclarations == maxDeclarations) {
             declarations = REALLOC(declarations,
                                    maxDeclarations
-                                   * sizeof(struct tgsi_full_instruction),
+                                   * sizeof(struct tgsi_full_declaration),
                                    (maxDeclarations + 10)
-                                   * sizeof(struct tgsi_full_instruction));
+                                   * sizeof(struct tgsi_full_declaration));
             maxDeclarations += 10;
          }
          memcpy(declarations + numDeclarations,
-                &parse.FullToken.FullInstruction,
+                &parse.FullToken.FullDeclaration,
                 sizeof(declarations[0]));
          numDeclarations++;
          break;