mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
i965: Add performance debug for register spilling.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
d72ff03e69
commit
4cfb9e3000
2 changed files with 8 additions and 0 deletions
|
|
@ -259,6 +259,10 @@ do_vs_prog(struct brw_context *brw,
|
|||
|
||||
/* Scratch space is used for register spilling */
|
||||
if (c.last_scratch) {
|
||||
perf_debug("Vertex shader triggered register spilling. "
|
||||
"Try reducing the number of live vec4 values to "
|
||||
"improve performance.\n");
|
||||
|
||||
c.prog_data.total_scratch = brw_get_scratch_size(c.last_scratch);
|
||||
|
||||
brw_get_scratch_bo(intel, &brw->vs.scratch_bo,
|
||||
|
|
|
|||
|
|
@ -321,6 +321,10 @@ bool do_wm_prog(struct brw_context *brw,
|
|||
|
||||
/* Scratch space is used for register spilling */
|
||||
if (c->last_scratch) {
|
||||
perf_debug("Fragment shader triggered register spilling. "
|
||||
"Try reducing the number of live scalar values to "
|
||||
"improve performance.\n");
|
||||
|
||||
c->prog_data.total_scratch = brw_get_scratch_size(c->last_scratch);
|
||||
|
||||
brw_get_scratch_bo(intel, &brw->wm.scratch_bo,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue