i915g: Report the temps usage
authorEmma Anholt <emma@anholt.net>
Fri, 4 Feb 2022 18:37:19 +0000 (10:37 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Feb 2022 00:36:57 +0000 (00:36 +0000)
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 <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14404>

src/gallium/drivers/i915/i915_fpc_translate.c

index 690b4ef..2e089a1 100644 (file)
@@ -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: