Skip to content

nir/algebraic: Don't put quotes around floating point literals

Ian Romanick requested to merge idr/mesa:bug-109075 into master

NOTE: This is still running through our CI, and I'm trying to come up with a piglit test case that will reproduce it.

The quotation marks around 1.0 cause it to be treated as a string instead of a floating point value. The generator then treats it as an arbitrary variable replacement, so any iand involving a ('ineg', ('b2i', a)) matches.

Signed-off-by: Ian Romanick <>
Fixes: 6bcd2af0863 ("nir/algebraic: Add some optimizations for D3D-style Booleans")

Merge request reports