nir: Allow to skip integer ops in nir_lower_to_source_mods
authorGert Wollny <gert.wollny@collabora.com>
Mon, 12 Nov 2018 08:17:34 +0000 (09:17 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Wed, 14 Nov 2018 07:59:26 +0000 (08:59 +0100)
commit4bba280937aa62244bf242034a6cdfd01667d3c1
tree1f19d916c077a29299ca853461e6d591472d6c05
parentb4380cb070c0865f1fbfb3720056545665759bc3
nir: Allow to skip integer ops in nir_lower_to_source_mods

Some hardware supports source mods only for float operations. Make it
possible to skip lowering to source mods in these cases.

v2: use option flags instead of a boolean (Jason Ekstrand)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_to_source_mods.c
src/intel/compiler/brw_nir.c