draw: Fix build -- rename Size to NrTokens.
authorMichal Krol <michal@vmware.com>
Tue, 10 Feb 2009 14:16:00 +0000 (15:16 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 10 Feb 2009 14:16:00 +0000 (15:16 +0100)
src/gallium/auxiliary/draw/draw_pipe_pstipple.c
src/gallium/auxiliary/draw/draw_vs_aos.c

index b764d9c518c80b5e7a225436ca82eecd1bb9919c..a0f9716dac2e10df009eda6cc199bd9186cb3658 100644 (file)
@@ -256,7 +256,7 @@ pstip_transform_inst(struct tgsi_transform_context *ctx,
          struct tgsi_full_immediate immed;
          uint size = 4;
          immed = tgsi_default_full_immediate();
-         immed.Immediate.Size = 1 + size; /* one for the token itself */
+         immed.Immediate.NrTokens = 1 + size; /* one for the token itself */
          immed.u.Pointer = (void *) value;
          ctx->emit_immediate(ctx, &immed);
       }
index 6817f29c2a9007ff252f6d8b34b9011aaccb358e..0c693a4a65ca486967c19a2f2ccc05c5c16a5616 100644 (file)
@@ -1870,7 +1870,7 @@ static boolean note_immediate( struct aos_compilation *cp,
    unsigned pos = cp->num_immediates++;
    unsigned j;
 
-   for (j = 0; j < imm->Immediate.Size; j++) {
+   for (j = 0; j < imm->Immediate.NrTokens - 1; j++) {
       cp->vaos->machine->immediate[pos][j] = imm->u.ImmediateFloat32[j].Float;
    }