diff options
author | Rob Clark <[email protected]> | 2019-12-19 13:58:32 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-01 02:40:22 +0000 |
commit | a5f24f966ae217981cd39e867a0de1fee029e740 (patch) | |
tree | d84fd55ac36541347d9fab40092b7b57d92ad4fa /src/freedreno | |
parent | 300d1181c72043afe045a155079fc152fcd1283e (diff) |
freedreno/ir3: a bit more optmsgs debug
Also dump where arrays are allocated. This was useful for debugging.
Signed-off-by: Rob Clark <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/ir3/ir3_ra.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_ra.c b/src/freedreno/ir3/ir3_ra.c index 3b54bdb1893..7ea21076784 100644 --- a/src/freedreno/ir3/ir3_ra.c +++ b/src/freedreno/ir3/ir3_ra.c @@ -1204,6 +1204,16 @@ retry: ra_set_node_reg(ctx->g, name, reg); } } + + if (ir3_shader_debug & IR3_DBG_OPTMSGS) { + foreach_array (arr, &ctx->ir->array_list) { + unsigned first = arr->reg; + unsigned last = arr->reg + arr->length - 1; + debug_printf("arr[%d] at r%d.%c->r%d.%c\n", arr->id, + (first >> 2), "xyzw"[first & 0x3], + (last >> 2), "xyzw"[last & 0x3]); + } + } } static int |