tgsi: fix incomplete rename of loop counter variable
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 23 Dec 2008 18:16:49 +0000 (18:16 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 23 Dec 2008 18:16:49 +0000 (18:16 +0000)
src/gallium/auxiliary/tgsi/tgsi_scan.c

index cfc7ea8e898fb3e5988ebd330338530f3bb4231b..1239f6c07658df2cf530de558965f89fc7028688 100644 (file)
@@ -124,7 +124,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
                /* only first 32 regs will appear in this bitfield */
                info->file_mask[file] |= (1 << reg);
                info->file_count[file]++;
-               info->file_max[file] = MAX2(info->file_max[file], (int)i);
+               info->file_max[file] = MAX2(info->file_max[file], (int)reg);
 
                if (file == TGSI_FILE_INPUT) {
                   info->input_semantic_name[reg] = (ubyte)fulldecl->Semantic.SemanticName;