nv50: fix FACE semantic check in FP input slot assignments
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 26 Mar 2010 10:13:01 +0000 (11:13 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 26 Mar 2010 10:13:01 +0000 (11:13 +0100)
Fixes for instance noise with material shaders in FlightGear.

src/gallium/drivers/nv50/nv50_program.c

index c857816b31a70a2cad7063aba3a1a3c78fa3d89c..d7e06c93272d5bfcc026258dffa08abdc9b5dca0 100644 (file)
@@ -3762,7 +3762,7 @@ nv50_program_tx_prep(struct nv50_pc *pc)
                        p->cfg.in[n].hw = rid = aid;
                        i = p->cfg.in[n].id;
 
-                       if (p->info.input_semantic_name[n] ==
+                       if (p->info.input_semantic_name[i] ==
                            TGSI_SEMANTIC_FACE) {
                                load_frontfacing(pc, &pc->attr[i * 4]);
                                continue;