Skip to content

nir: add unordered comparisons, ordered fne, ford and funord, remove aco's optimizations for them

Georg Lehmann requested to merge DadSchoorse/mesa:nir-cmpu-neo-is_ordered into main

AMD and Nvidia both have matching hardware for all of these opcodes. Until now, aco had a few patterns for this in aco_optimizer, but with NIR opcodes the optimizations can be expressed in just a few nir_opt_algebraic patterns. Having a NIR option is also helpful for @idr's MR that optimizes some of these patterns for hardware that does not support ordered fne.

This MR also contains two nir_opt_algebraic changes that were needed to remove the backend optimizations without regressions.

Edited by Georg Lehmann

Merge request reports