diff options
author | Eric Anholt <[email protected]> | 2019-02-25 16:27:41 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-02-25 21:26:24 -0800 |
commit | e0fada983dd24d1cd1c0a1d7e4705d4f06bc2026 (patch) | |
tree | f63ba225fc158a97e9a3a1f8bdf89ab2c17d12b7 /src/broadcom/compiler | |
parent | 2786d2161ac0ded9b0304431368aaedae9010e4d (diff) |
v3d: Dump the VIR after register spilling if we were forced to.
Spilling is unusual, but one often has to debug it when it happens, so
dump it.
Diffstat (limited to 'src/broadcom/compiler')
-rw-r--r-- | src/broadcom/compiler/nir_to_vir.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c index e441bd5997d..5d2c872f2aa 100644 --- a/src/broadcom/compiler/nir_to_vir.c +++ b/src/broadcom/compiler/nir_to_vir.c @@ -2670,5 +2670,15 @@ v3d_nir_to_vir(struct v3d_compile *c) vir_remove_thrsw(c); } + if (c->spill_size && + (V3D_DEBUG & (V3D_DEBUG_VIR | + v3d_debug_flag_for_shader_stage(c->s->info.stage)))) { + fprintf(stderr, "%s prog %d/%d spilled VIR:\n", + vir_get_stage_name(c), + c->program_id, c->variant_id); + vir_dump(c); + fprintf(stderr, "\n"); + } + v3d_vir_to_qpu(c, temp_registers); } |