diff options
author | Gert Wollny <[email protected]> | 2018-11-12 09:17:34 +0100 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2018-11-14 08:59:26 +0100 |
commit | 4bba280937aa62244bf242034a6cdfd01667d3c1 (patch) | |
tree | 1f19d916c077a29299ca853461e6d591472d6c05 /src/intel | |
parent | b4380cb070c0865f1fbfb3720056545665759bc3 (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 80fa5a1a81f..10b03ef2fba 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -796,7 +796,7 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, OPT(nir_opt_algebraic_late); - OPT(nir_lower_to_source_mods); + OPT(nir_lower_to_source_mods, nir_lower_all_source_mods); OPT(nir_copy_prop); OPT(nir_opt_dce); OPT(nir_opt_move_comparisons); |