nir: Mark ffma as 2src_commutative
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 14 Aug 2018 01:08:23 +0000 (18:08 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 14 May 2019 18:25:02 +0000 (11:25 -0700)
commit7b4ff6a1af27af458446640c41c61cdee6c960f8
treeee901b5609751b261bb1b50d5e1ecfd32ab8b6fa
parente049a9c92b3048f2d28d5a36f0dd780b19fe4b2a
nir: Mark ffma as 2src_commutative

This doesn't make any real difference now, but future work (not in this
series) will add a LOT of ffma patterns.  Having to duplicate all of
them for ffma(a, b, c) and ffma(b, a, c) is just terrible.

No shader-db changes on any Intel platform.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opcodes.py
src/compiler/nir/nir_opt_algebraic.py