radv: Dump command buffer on hang.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 23 Dec 2016 22:51:18 +0000 (23:51 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 9 Jan 2017 20:44:03 +0000 (21:44 +0100)
commit97dfff54105ac10b6e2daace020687eefdcc28c0
tree52520f9bcb806f000d4ea52b9d1548200ed14183
parent0ef1b4d5b1a3af4ce7ae42ef4259d5db320724c5
radv: Dump command buffer on hang.

v2:
  - Now use the filename specified by RADV_TRACE_FILE env var.
  - Use the same var to enable tracing.

I thought we could as well always set the filename explicitly
instead of having some arbitrary defaults, and at that point
we don't need a separate feature enable.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_radeon_winsys.h
src/amd/vulkan/si_cmd_buffer.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c