OSDN Git Service

nv50: fix FP result counting for depth output
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 20 Apr 2010 19:20:55 +0000 (21:20 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 20 Apr 2010 20:08:04 +0000 (22:08 +0200)
src/gallium/drivers/nv50/nv50_program.c

index 89ab25e..b8b6b12 100644 (file)
@@ -3822,7 +3822,7 @@ nv50_program_tx_prep(struct nv50_pc *pc)
                for (rid = 0; i < pc->result_nr * 4; i++)
                        pc->result[i].rhw = rid++;
                if (p->info.writes_z)
-                       pc->result[2].rhw = rid;
+                       pc->result[2].rhw = rid++;
 
                p->cfg.high_result = rid;