cell: Fix build after TGSI declaration interface changes.
authorMichal Krol <michal@tungstengraphics.com>
Sat, 31 May 2008 17:51:50 +0000 (19:51 +0200)
committerMichal Krol <michal@tungstengraphics.com>
Sat, 31 May 2008 17:51:50 +0000 (19:51 +0200)
src/gallium/drivers/cell/spu/spu_exec.c

index 48edc62f49bd02f8d1a11dc0d4362cad8ff0cdfa..69b05261209584bb5dc4f22a863943413403a8fd 100644 (file)
@@ -830,13 +830,11 @@ exec_declaration(struct spu_exec_machine *mach,
          unsigned first, last, mask;
          interpolation_func interp;
 
-         assert( decl->Declaration.Declare == TGSI_DECLARE_RANGE );
-
-         first = decl->u.DeclarationRange.First;
-         last = decl->u.DeclarationRange.Last;
+         first = decl->DeclarationRange.First;
+         last = decl->DeclarationRange.Last;
          mask = decl->Declaration.UsageMask;
 
-         switch( decl->Interpolation.Interpolate ) {
+         switch( decl->Declaration.Interpolate ) {
          case TGSI_INTERPOLATE_CONSTANT:
             interp = constant_interpolation;
             break;