diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-12-23 23:51:18 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-01-09 21:44:03 +0100 |
commit | 97dfff54105ac10b6e2daace020687eefdcc28c0 (patch) | |
tree | 52520f9bcb806f000d4ea52b9d1548200ed14183 /src/amd/vulkan/radv_radeon_winsys.h | |
parent | 0ef1b4d5b1a3af4ce7ae42ef4259d5db320724c5 (diff) |
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 <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_radeon_winsys.h')
-rw-r--r-- | src/amd/vulkan/radv_radeon_winsys.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_radeon_winsys.h b/src/amd/vulkan/radv_radeon_winsys.h index 4b738b8cf46..a0b5092e300 100644 --- a/src/amd/vulkan/radv_radeon_winsys.h +++ b/src/amd/vulkan/radv_radeon_winsys.h @@ -319,6 +319,8 @@ struct radeon_winsys { void (*cs_execute_secondary)(struct radeon_winsys_cs *parent, struct radeon_winsys_cs *child); + void (*cs_dump)(struct radeon_winsys_cs *cs, FILE* file, uint32_t trace_id); + int (*surface_init)(struct radeon_winsys *ws, struct radeon_surf *surf); |