From 455deacbcea7e2ebd7596c9831577b0d6262b06d Mon Sep 17 00:00:00 2001 From: Sushma Venkatesh Reddy Date: Fri, 26 Jul 2024 12:37:55 -0700 Subject: [PATCH] intel/brw: Fix DEBUG_OPTIMIZER Due to recent regression, adding INTEL_DEBUG=optimizer is dumping shader optimization pass details to console rather than to respective files. Thank you, Kenneth W Graunke for helping me figure this out. Fixes: 17b7e490890b ("intel/brw: Move out of fs_visitor and rename print instructions") Signed-off-by: Sushma Venkatesh Reddy Reviewed-by: Caio Oliveira Reviewed-by: Ian Romanick Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/brw_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index b6ce89963b6..7b03258ef51 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -1554,7 +1554,7 @@ fs_visitor::debug_optimizer(const nir_shader *nir, iteration, pass_num, pass_name); if (ret == -1) return; - brw_print_instructions(*this); + brw_print_instructions(*this, filename); free(filename); }