From: Michal Krol Date: Tue, 10 Feb 2009 14:17:17 +0000 (+0100) Subject: i915: Fix build -- rename Size to NrTokens. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0020e1d10870e0d24c62e3060a7efb9a6472666d;p=mesa.git i915: Fix build -- rename Size to NrTokens. --- diff --git a/src/gallium/drivers/i915simple/i915_fpc_translate.c b/src/gallium/drivers/i915simple/i915_fpc_translate.c index 43d62c51765..d92bdc1bc65 100644 --- a/src/gallium/drivers/i915simple/i915_fpc_translate.c +++ b/src/gallium/drivers/i915simple/i915_fpc_translate.c @@ -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; } }