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:

committed by
Marge Bot

parent
82d77f0ea8
commit
244d2daa00
@@ -1077,11 +1077,9 @@ nir_shader_has_local_variables(const nir_shader *nir)
|
||||
*/
|
||||
void
|
||||
brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler,
|
||||
bool is_scalar)
|
||||
bool is_scalar, bool debug_enabled)
|
||||
{
|
||||
const struct gen_device_info *devinfo = compiler->devinfo;
|
||||
bool debug_enabled =
|
||||
(INTEL_DEBUG & intel_debug_flag_for_shader_stage(nir->info.stage));
|
||||
|
||||
UNUSED bool progress; /* Written by OPT */
|
||||
|
||||
|
Reference in New Issue
Block a user