From e92209f2990dc91d33fafb04a92e17a3ebdfb9e5 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Fri, 4 Feb 2022 10:37:19 -0800 Subject: [PATCH] i915g: Report the temps usage This is another important metric for this driver, and we don't do our own RA so ours is just what TGSI uses. Reviewed-by: Ian Romanick Part-of: --- src/gallium/drivers/i915/i915_fpc_translate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index 690b4ef0900..2e089a164b7 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -968,9 +968,11 @@ i915_fini_compile(struct i915_context *i915, struct i915_fp_compile *p) pipe_debug_message( &i915->debug, SHADER_INFO, - "%s shader: %d inst, %d tex, %d tex_indirect, %d const", + "%s shader: %d inst, %d tex, %d tex_indirect, %d temps, %d const", _mesa_shader_stage_to_abbrev(MESA_SHADER_FRAGMENT), (int)program_size, - p->nr_tex_insn, p->nr_tex_indirect, ifs->num_constants); + p->nr_tex_insn, p->nr_tex_indirect, + p->shader->info.file_max[TGSI_FILE_TEMPORARY] + 1, + ifs->num_constants); } /* Release the compilation struct: