nir: Lower subtraction to add with negation when !lower_negate

Graphics / Mesa 3D Graphics Library / Mesa - Kenneth Graunke [whitecape.org] - 27 March 2015 23:16 UTC

prog->nir will generate fsub opcodes, but i965 doesn't implement them. We may as well lower them at the NIR level, since it's trivial to do.

Suggested by Connor Abbott.

bf2c3bc nir: Lower subtraction to add with negation when !lower_negate.
src/glsl/nir/nir_opt_algebraic.py | 2 ++
1 file changed, 2 insertions(+)

Upstream: cgit.freedesktop.org


  • Share