From 34980cd153050111edc545545ddff11f5b68347e Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Wed, 17 Aug 2011 20:38:40 +0200 Subject: nv50: don't drop flags definition when merging SAT with ADD/MAD --- src/gallium/drivers/nv50/nv50_pc_optimize.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/nv50/nv50_pc_optimize.c b/src/gallium/drivers/nv50/nv50_pc_optimize.c index d72b23c137a..a1590c2dc6b 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); } } -- cgit v1.2.3