Mesa (nv50-compiler): nv50: set the FragDepth output index

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Wed Sep 1 16:02:50 UTC 2010


Module: Mesa
Branch: nv50-compiler
Commit: 3844c365947082550565accefd996c10fbb15cc4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3844c365947082550565accefd996c10fbb15cc4

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Sat Aug 28 17:05:11 2010 +0200

nv50: set the FragDepth output index

---

 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 d47941d..d4a75dc 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -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;




More information about the mesa-commit mailing list