i915: Fix build after TGSI declaration interface changes.
authorMichal Krol <michal@tungstengraphics.com>
Sat, 31 May 2008 17:52:41 +0000 (19:52 +0200)
committerMichal Krol <michal@tungstengraphics.com>
Sat, 31 May 2008 17:52:41 +0000 (19:52 +0200)
src/gallium/drivers/i915simple/i915_fpc_translate.c

index 3ccf74c72c46c144bb5ac0cbb0573d23f45ea829..48f3ceb2e88c0f36056eddaac5cde8be1d6876d3 100644 (file)
@@ -943,8 +943,8 @@ i915_translate_instructions(struct i915_fp_compile *p,
          if (parse.FullToken.FullDeclaration.Declaration.File
                   == TGSI_FILE_CONSTANT) {
             uint i;
-            for (i = parse.FullToken.FullDeclaration.u.DeclarationRange.First;
-                 i <= parse.FullToken.FullDeclaration.u.DeclarationRange.Last;
+            for (i = parse.FullToken.FullDeclaration.DeclarationRange.First;
+                 i <= parse.FullToken.FullDeclaration.DeclarationRange.Last;
                  i++) {
                assert(ifs->constant_flags[i] == 0x0);
                ifs->constant_flags[i] = I915_CONSTFLAG_USER;
@@ -954,8 +954,8 @@ i915_translate_instructions(struct i915_fp_compile *p,
          else if (parse.FullToken.FullDeclaration.Declaration.File
                   == TGSI_FILE_TEMPORARY) {
             uint i;
-            for (i = parse.FullToken.FullDeclaration.u.DeclarationRange.First;
-                 i <= parse.FullToken.FullDeclaration.u.DeclarationRange.Last;
+            for (i = parse.FullToken.FullDeclaration.DeclarationRange.First;
+                 i <= parse.FullToken.FullDeclaration.DeclarationRange.Last;
                  i++) {
                assert(i < I915_MAX_TEMPORARY);
                /* XXX just use shader->info->file_mask[TGSI_FILE_TEMPORARY] */