nir/algebraic: Fix fmin detection to match the spec
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Mar 2016 21:30:29 +0000 (14:30 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Mar 2016 23:28:00 +0000 (16:28 -0700)
commited3a029e8088cb17af073c3b5f7444cb7e2f1cfb
tree0328c5f8ef7594bcd4c955ad6e9975d93df2ef91
parent89545b13141053cf12a10e5357aa82031e8419ed
nir/algebraic: Fix fmin detection to match the spec

The previous transformation got the arguments to fmin backwards.  When NaNs
are involved, the GLSL min/max aren't commutative so it matters.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/compiler/nir/nir_opt_algebraic.py