Module: Mesa Branch: main Commit: ef88a20d962655b4140ae10ae6d1fffd2f57f26c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef88a20d962655b4140ae10ae6d1fffd2f57f26c
Author: Caio Oliveira <[email protected]> Date: Mon Jan 8 12:03:03 2024 -0800 intel/compiler: Use INTEL_DEBUG=cs to ask for brw_compiler output This removes output like ``` CS SIMD16 shader: 2790 inst, 0 loops, 24804 cycles, 166:106 spills:fills, 35 sends, scheduled with mode top-down, Promoted 1 constants, compacted 44640 to 41424 bytes. ``` from the default builds. Like other debug output in intel_clc, they can re-enabled with INTEL_DEBUG=cs. Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26939> --- src/intel/compiler/intel_clc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/intel_clc.c b/src/intel/compiler/intel_clc.c index 1d3ead963a3..3c0c1c6a68a 100644 --- a/src/intel/compiler/intel_clc.c +++ b/src/intel/compiler/intel_clc.c @@ -87,7 +87,8 @@ compiler_log(void *data, unsigned *id, const char *fmt, ...) { va_list args; va_start(args, fmt); - vfprintf(stderr, fmt, args); + if (INTEL_DEBUG(DEBUG_CS)) + vfprintf(stderr, fmt, args); va_end(args); }
