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 <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14404>
This commit is contained in:
Emma Anholt 2022-02-04 10:37:19 -08:00 committed by Marge Bot
parent bfcc7c20c8
commit e92209f299
1 changed files with 4 additions and 2 deletions

View 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: