From: Christoph Bumiller Date: Wed, 17 Aug 2011 18:38:40 +0000 (+0200) Subject: nv50: don't drop flags definition when merging SAT with ADD/MAD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34980cd153050111edc545545ddff11f5b68347e;p=mesa.git nv50: don't drop flags definition when merging SAT with ADD/MAD --- 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); } }