Mesa (master): nv50: fix FP result counting for depth output

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Tue Apr 20 20:08:51 UTC 2010


Module: Mesa
Branch: master
Commit: 03e97e7f8d87f500c008cadd4982537adcfa4969
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=03e97e7f8d87f500c008cadd4982537adcfa4969

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Tue Apr 20 21:20:55 2010 +0200

nv50: fix FP result counting for depth output

---

 src/gallium/drivers/nv50/nv50_program.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index 89ab25e..b8b6b12 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -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;
 




More information about the mesa-commit mailing list