Mesa (master): nv50: don't drop flags definition when merging SAT with ADD/ MAD

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Wed Aug 17 11:40:43 PDT 2011


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

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Wed Aug 17 20:38:40 2011 +0200

nv50: don't drop flags definition when merging SAT with ADD/MAD

---

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

diff --git a/src/gallium/drivers/nv50/nv50_pc_optimize.c b/src/gallium/drivers/nv50/nv50_pc_optimize.c
index d72b23c..a1590c2 100644
--- a/src/gallium/drivers/nv50/nv50_pc_optimize.c
+++ b/src/gallium/drivers/nv50/nv50_pc_optimize.c
@@ -462,6 +462,8 @@ nv_pass_lower_mods(struct nv_pass *ctx, struct nv_basic_block *b)
          mi->saturate = 1;
          mi->def[0] = nvi->def[0];
          mi->def[0]->insn = mi;
+         mi->flags_def = nvi->flags_def;
+         mi->flags_def->insn = mi;
          nv_nvi_delete(nvi);
       }
    }



More information about the mesa-commit mailing list