nvc0: fix unitialized variable in TGSI sysval decl processing
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 5 Mar 2011 21:28:46 +0000 (22:28 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 13 Mar 2011 12:23:54 +0000 (13:23 +0100)
src/gallium/drivers/nvc0/nvc0_program.c

index 899fe14..975745a 100644 (file)
@@ -298,6 +298,7 @@ prog_decl(struct nvc0_translation_info *ti,
       }
       break;
    case TGSI_FILE_SYSTEM_VALUE:
+      i = first;
       ti->sysval_loc[i] = nvc0_system_value_location(sn, si, &ti->sysval_in[i]);
       assert(first == last);
       break;