From: Jason Ekstrand Date: Thu, 17 Mar 2016 20:39:07 +0000 (-0700) Subject: i965/peephole_ffma: Don't fuse exact adds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=865e83b9ec86c9ccec7100dfae9f80ff2969753c;p=mesa.git i965/peephole_ffma: Don't fuse exact adds Reviewed-by: Francisco Jerez --- diff --git a/src/mesa/drivers/dri/i965/brw_nir_opt_peephole_ffma.c b/src/mesa/drivers/dri/i965/brw_nir_opt_peephole_ffma.c index 49810c22cfa..6e8b1f99505 100644 --- a/src/mesa/drivers/dri/i965/brw_nir_opt_peephole_ffma.c +++ b/src/mesa/drivers/dri/i965/brw_nir_opt_peephole_ffma.c @@ -168,7 +168,9 @@ brw_nir_opt_peephole_ffma_block(nir_block *block, void *void_state) if (add->op != nir_op_fadd) continue; - /* TODO: Maybe bail if this expression is considered "precise"? */ + assert(add->dest.dest.is_ssa); + if (add->exact) + continue; assert(add->src[0].src.is_ssa && add->src[1].src.is_ssa);