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

index 1392fe956f7f6453ca726b5406ee27daa8e4d30d..0862386638cb553cde1a755c87fcfd0b7ebcb756 100644 (file)
@@ -784,7 +784,7 @@ nv40_vertprog_translate(struct nv40_context *nv40,
 
                        imm = &parse.FullToken.FullImmediate;
                        assert(imm->Immediate.DataType == TGSI_IMM_FLOAT32);
-//                     assert(imm->Immediate.Size == 4);
+                       assert(imm->Immediate.NrTokens == 4 + 1);
                        vpc->imm[vpc->nr_imm++] =
                                constant(vpc, -1,
                                         imm->u.ImmediateFloat32[0].Float,