Mesa (main): i915g: Report the temps usage
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Feb 10 01:12:37 UTC 2022
Module: Mesa
Branch: main
Commit: e92209f2990dc91d33fafb04a92e17a3ebdfb9e5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e92209f2990dc91d33fafb04a92e17a3ebdfb9e5
Author: Emma Anholt <emma at anholt.net>
Date: Fri Feb 4 10:37:19 2022 -0800
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 at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14404>
---
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:
More information about the mesa-commit
mailing list