nv50: set the FragDepth output index
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 28 Aug 2010 15:05:11 +0000 (17:05 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 1 Sep 2010 16:02:50 +0000 (18:02 +0200)
src/gallium/drivers/nv50/nv50_program.c

index d47941d3b151710c854008ff7140f67ccfa37367..d4a75dc64afe6aa6627c1d2abd416b7c697be22c 100644 (file)
@@ -461,7 +461,7 @@ nv50_fragprog_prepare(struct nv50_translation_info *ti)
    }
    if (depr < p->out_nr) {
       p->out[depr].mask = 0x4;
-      p->out[depr].hw = p->max_out++;
+      p->out[depr].hw = ti->output_map[depr][2] = p->max_out++;
    }
 
    return 0;