intel/nir: Add a common nir comparison -> cmod helper
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 2 Aug 2019 20:19:16 +0000 (15:19 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Sat, 3 Aug 2019 00:35:48 +0000 (00:35 +0000)
commitc02c3ff6121c5f2c8045900c6b83746344f56b32
tree2d23bad69b429bfe91266b13ce5f19a116bf63c7
parent2fd30e37220484f44b1cfb1ee9afbe6c8a0b43f0
intel/nir: Add a common nir comparison -> cmod helper

We already had one in the vec4 code, we just had move it.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_nir.c
src/intel/compiler/brw_nir.h
src/intel/compiler/brw_vec4_nir.cpp