nir: Optimize umod lowering

Graphics / Mesa 3D Graphics Library / Mesa - Sagar Ghuge [intel.com] - 26 July 2019 18:19 EDT

We don't have calculate final quotient in order to calculate unsigned modulo result. Once we are done with error correction we have partial result which can be used to find out modulo operation result

d5992ab134f nir: Optimize umod lowering
src/compiler/nir/nir_lower_idiv.c | 48 +++++++++++++++++++--------------------
1 file changed, 23 insertions(+), 25 deletions(-)

Upstream: cgit.freedesktop.org


  • Share