i915: Fix build -- rename Size to NrTokens.
authorMichal Krol <michal@vmware.com>
Tue, 10 Feb 2009 14:17:17 +0000 (15:17 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 10 Feb 2009 14:17:17 +0000 (15:17 +0100)
src/gallium/drivers/i915simple/i915_fpc_translate.c

index 43d62c517656df3d2c891bdcaea714b8ca876883..d92bdc1bc657c5f1bbd7acbf63577f78a83b5f31 100644 (file)
@@ -964,7 +964,7 @@ i915_translate_instructions(struct i915_fp_compile *p,
                = &parse.FullToken.FullImmediate;
             const uint pos = p->num_immediates++;
             uint j;
-            for (j = 0; j < imm->Immediate.Size; j++) {
+            for (j = 0; j < imm->Immediate.NrTokens - 1; j++) {
                p->immediates[pos][j] = imm->u.ImmediateFloat32[j].Float;
             }
          }