radv: save the bound pipeline pointers into the trace BO
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 5 Sep 2017 19:02:14 +0000 (21:02 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 14 Sep 2017 08:37:57 +0000 (10:37 +0200)
commitbcf76982113fe24e46d218fc630d70156ecea911
treec506a87f6f7f8e3786a1fc0fe96689e21137a05d
parent3c61c99ed5936d4a48a98499c25fc9e8aa58bfee
radv: save the bound pipeline pointers into the trace BO

When a GPU hang is detected in radv_gpu_hang_occured() we know
which command buffer is faulty but the bound pipelines might
have been updated during the execution.

The pointers to the radv_pipeline objects are emitted just
after the second trace ID, that way it would be easy to dump
the active shaders at the moment of the hang.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_debug.c