intel/compiler: Make brw_postprocess_nir take debug_enabled as a parameter

The callers already have this value, and we would like to make it
follow different rules other than stage that might not be visible to
the helper function, so just pass explicitly.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9779>
This commit is contained in:
Caio Marcelo de Oliveira Filho
2021-03-23 11:08:32 -07:00
committed by Marge Bot
parent 82d77f0ea8
commit 244d2daa00
7 changed files with 10 additions and 11 deletions
+3 -3
View File
@@ -9093,7 +9093,7 @@ brw_compile_fs(const struct brw_compiler *compiler,
if (!key->multisample_fbo)
NIR_PASS_V(nir, brw_nir_demote_sample_qualifiers);
NIR_PASS_V(nir, brw_nir_move_interpolation_to_top);
brw_postprocess_nir(nir, compiler, true);
brw_postprocess_nir(nir, compiler, true, debug_enabled);
brw_nir_populate_wm_prog_data(nir, compiler->devinfo, key, prog_data);
@@ -9420,7 +9420,7 @@ compile_cs_to_nir(const struct brw_compiler *compiler,
NIR_PASS_V(shader, nir_opt_constant_folding);
NIR_PASS_V(shader, nir_opt_dce);
brw_postprocess_nir(shader, compiler, true);
brw_postprocess_nir(shader, compiler, true, debug_enabled);
return shader;
}
@@ -9721,7 +9721,7 @@ brw_compile_bs(const struct brw_compiler *compiler, void *log_data,
const unsigned max_dispatch_width = 16;
brw_nir_apply_key(shader, compiler, &key->base, max_dispatch_width, true);
brw_postprocess_nir(shader, compiler, true);
brw_postprocess_nir(shader, compiler, true, debug_enabled);
fs_visitor *v = NULL, *v8 = NULL, *v16 = NULL;
bool has_spilled = false;