[Mesa-dev] [PATCH 07/12] i965/peephole_ffma: Don't fuse exact adds

Francisco Jerez currojerez at riseup.net
Mon Mar 21 21:50:50 UTC 2016


Jason Ekstrand <jason at jlekstrand.net> writes:

> ---
>  src/mesa/drivers/dri/i965/brw_nir_opt_peephole_ffma.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> 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 5ff2cba..3c1e27f 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;

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

>  
>        assert(add->src[0].src.is_ssa && add->src[1].src.is_ssa);
>  
> -- 
> 2.5.0.400.gff86faf
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160321/a296ff14/attachment-0001.sig>


More information about the mesa-dev mailing list